Reputation: 4363
I received following errors when trying to build my project on iphone simulator 5 and 6 and 6 plus. I tried to clean and rebuild again but did not work. I had no clue why this is happening. Because when I plug my phone in, it will run correctly on the phone.
The most important errors here are somehow UIKit
and QuarztCore
both unfounded.
Can anyone look into this? How do I resolve this issue so that I can run my app on simulator! Thank you!
/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
Upvotes: 0
Views: 2120
Reputation: 15784
The reason is not StoreKit. Maybe 'CAMetalLayer' cause it requires A7 device (not simulator).
You can find APIs that are not supported in simulator in this link. Apparently, Apple has removed StoreKit from this list. So maybe, the reason is not StoreKit. Maybe 'CAMetalLayer' cause
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
Upvotes: 2