每当我尝试在Xcode 6 Beta 4中运行我的应用程序,我得到错误:
The file "MyApp.app" couldn't be opened because you don't have permission to view it.无论我目标是什么模拟器或设备,都会出现此错误。
我努力了:
从Xcode中的管理器中删除所有派生数据 修复我的驱动器的权限 手动提升构建的MyApp.app的权限 重启电脑有没有人遇到这个问题,找到一个解决方案?
Whenever I try to run my app in Xcode 6 Beta 4 I am getting the error:
The file "MyApp.app" couldn't be opened because you don't have permission to view it.This error appears no matter what simulator or device I target.
I have tried:
Deleting all Derived Data from Organizer in Xcode Repairing permissions on my drive Manually elevating the permissions of the built MyApp.app Restarting my computerHas anyone else run into this problem and found a solution?
最满意答案
我使用Xcode6 GM。 我遇到同样的问题。 我做的是去构建设置 - >构建选项。 然后我将“C / C ++ / Objective-C编译器”的值更改为默认编译器。
There was a problem with the Info.plist of the project. I created a new project with the same name in Xcode 6 beta 4 and then replaced the real project's Info.plist with the new one. The project then built and ran fine.
Look at the diff, it appears like the plist might have somehow gotten mixed up with a playground's plist. The bundle identifier was "com.apple.dt.playground.iOS-18300-13" and the executable and bundle names were "iOS" along with some other oddities.
This is the full diff in case anyone needs it for reference:
<key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> - <string>iOS</string> + <string>${EXECUTABLE_NAME}</string> <key>CFBundleIdentifier</key> - <string>com.apple.dt.playground.iOS-18300-13</string> + <string>com.myCompany.${PRODUCT_NAME:rfc1034identifier}</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> - <string>iOS</string> + <string>${PRODUCT_NAME}</string> <key>CFBundlePackageType</key> - <string>AAPL</string> + <string>APPL</string> <key>CFBundleShortVersionString</key> <string>1.0</string> - <key>CFBundleSupportedPlatforms</key> - <array> - <string>iPhoneSimulator</string> - </array> + <key>CFBundleSignature</key> + <string>????</string> <key>CFBundleVersion</key> <string>1</string> - <key>DTPlatformName</key> - <string>iphonesimulator</string> - <key>DTSDKName</key> - <string>iphonesimulator8.0</string> - <key>LSBackgroundOnly</key> - <true/> <key>LSRequiresIPhoneOS</key> <true/> + <key>UIMainStoryboardFile</key> + <string>Main</string> <key>UIRequiredDeviceCapabilities</key> <array> <string>armv7</string> </array> + <key>UISupportedInterfaceOrientations</key> + <array> + <string>UIInterfaceOrientationPortrait</string> + <string>UIInterfaceOrientationLandscapeLeft</string> + <string>UIInterfaceOrientationLandscapeRight</string> + </array> </dict> </plist>更多推荐
发布评论