“在Xcode 6 Beta 4中运行应用程序时,无法打开文件”MyApp.app“,因为您没有查看权限(“The file ”MyApp.app“ couldn't be opened b

编程入门 行业动态 更新时间:2024-10-27 15:17:20
“在Xcode 6 Beta 4中运行应用程序时,无法打开文件”MyApp.app“,因为您没有查看权限(“The file ”MyApp.app“ couldn't be opened because you don't have permission to view it” when running app in Xcode 6 Beta 4)

每当我尝试在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 computer

Has 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>

更多推荐

本文发布于:2023-04-27 21:55:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1328617.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   无法打开   您没有   权限   文件

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!