[英]iOS universal framework with iphoneos and iphonesimulator architectures
[英]IOS architectures and framework creations
更新資料
我正在使用以下命令創建框架
xcodebuild -scheme MyFramework -sdk iphonesimulator -arch="armv7s" -configuration -Release TARGETED_DEVICE_FAMILY="1, 2" VALID_ARCHS="amrv7 arm64 armv7s"
但是它失敗並顯示以下消息:
No architectures to compile for (ARCHS=i386, VALID_ARCHS=amrv7 arm64 armv7s).
為什么ios框架需要“ i386”架構?
是的,您可以創建自己的框架,請在github https://github.com/wshcdr/iOS-Universal-Framework上查看
在構建命令行中,您已指定-sdk iphonesimulator
這意味着它將為模擬器構建,這需要i386。 將其更改為-sdk iphoneos
,以為iOS物理設備構建它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.