这就是我的预 *** 作:
当我从终端(xcodebuild -scheme UAT构建)构建时,我看到以下错误:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/library/Frameworks/CoreFoundation.framework/headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/System/library/Frameworks/CoreFoundation.framework/headers/CoreFoundation.h:11: #include <sys/types.h> ^ <module-includes>:1:9: note: in file included from <module-includes>:1:#import "sys/cdefs.h"^/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/usr/include/sys/cdefs.h:707:2: error: Unsupported architecture#error Unsupported architecture^
更新:
如果我只是打印一些东西而不导入Foundation模块那么它就可以了.即打印( “你好”).但我显然不能使用nsprocessInfo.
例:
总结以上是内存溢出为你收集整理的xcode – 如何在Swift中编写构建预执行脚本?全部内容,希望文章能够帮你解决xcode – 如何在Swift中编写构建预执行脚本?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)