当我试图在iphone模拟器5、6和6+上构建我的项目时,我收到了以下错误。我试图再次清理和重建,但没有工作。我不知道为什么会发生这种事。因为当我插上我的手机时,它会在手机上正常运行。
这里最重要的错误是UIKit和QuarztCore都是毫无根据的。
有人能调查一下吗?我如何解决这个问题,以便我可以运行我的应用程序模拟器!谢谢!
/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发布于 2015-02-09 09:22:04
原因不是StoreKit。也许“CAMetalLayer”是因为它需要A7设备(而不是模拟器)。
更新: ref/doc/uid/TP40012848-CH4-SW1
您可以在此链接中找到模拟器中不支持的API。显然,苹果已经把StoreKit从这个名单上删除了。所以也许,原因不是StoreKit。也许'CAMetalLayer‘因为
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 classhttps://stackoverflow.com/questions/28405549
复制相似问题