gpt4 book ai didi

ios - 无法在模拟器上构建模块 'UIKit',但不能在手机上构建

转载 作者:行者123 更新时间:2023-11-28 13:17:31 26 4
gpt4 key购买 nike

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

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

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

/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

最佳答案

原因不是 StoreKit。可能是“CAMetalLayer”,因为它需要 A7 设备(不是模拟器)。

更新: https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/TestingontheiOSSimulator/TestingontheiOSSimulator.html#//apple_ref/doc/uid/TP40012848-CH4-SW1

您可以在此链接中找到模拟器不支持的 API。显然,Apple 已经从这个列表中删除了 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 class

关于ios - 无法在模拟器上构建模块 'UIKit',但不能在手机上构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28405549/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com