首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在模拟器上构建模块“UIKit”,但不能在电话上构建模块

无法在模拟器上构建模块“UIKit”,但不能在电话上构建模块
EN

Stack Overflow用户
提问于 2015-02-09 08:27:09
回答 1查看 2.1K关注 0票数 0

当我试图在iphone模拟器5、6和6+上构建我的项目时,我收到了以下错误。我试图再次清理和重建,但没有工作。我不知道为什么会发生这种事。因为当我插上我的手机时,它会在手机上正常运行。

这里最重要的错误是UIKitQuarztCore都是毫无根据的。

有人能调查一下吗?我如何解决这个问题,以便我可以运行我的应用程序模拟器!谢谢!

代码语言:javascript
复制
/project-folder/QuartzCore.framework/Headers/CAMetalLayer.h:7:9: 'Metal/MTLPixelFormat.h' file not found   
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICollectionViewLayout.h:11:9: Could not build module 'QuartzCore' 
/project-folder/Parse.framework/Headers/PFConstants.h:27:9: Could not build module 'UIKit' 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKStoreProductViewController.h 
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/StoreKit.framework/Headers/SKStoreProductViewController.h:9:9: Could not build module 'UIKit' 
/project-folder/hatchpic-Bridging-Header.h:8:9: Could not build module 'Parse' Failed to import bridging header 
'/project-folder/hatchpic-Bridging-Header.h' Failed to import bridging header 
'/project-folder/hatchpic-Bridging-Header.h' Command failed due to signal: Segmentation fault: 11
EN

回答 1

Stack Overflow用户

发布于 2015-02-09 09:22:04

原因不是StoreKit。也许“CAMetalLayer”是因为它需要A7设备(而不是模拟器)。

更新: ref/doc/uid/TP40012848-CH4-SW1

您可以在此链接中找到模拟器中不支持的API。显然,苹果已经把StoreKit从这个名单上删除了。所以也许,原因不是StoreKit。也许'CAMetalLayer‘因为

代码语言:javascript
复制
API Limitations
Within iOS Simulator, there are some limitations to the APIs and features, including:

Apple Push Services
Privacy alerts for access to Photos, Contacts, Calendar, and Reminders
The UIBackgroundModes key
iCloud document syncing and key-value storage support
Unsupported frameworks include:

External Accessory
Media Player
Message UI
Event Kit
In UIKit, the UIVideoEditorController class
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28405549

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档