[英]xcodebuild command to create archive for App Store
I am trying to archive my project for one of my project schemes using: xcodebuild
command, 我正在尝试使用以下代码为我的项目方案之一归档项目:
xcodebuild
命令,
xcodebuild -workspace MyProj.xcworkspace -scheme AppScheme -sdk iphoneos
-configuration AppStoreDistribution TARGETED_DEVICE_FAMILY='1'
CODE_SIGN_IDENTITY='iPhone Distribution: myDistName (ABCDEFGHIJ-112233)'
PROVISIONING_PROFILE='A11111-22222-33333S-*!123-12332123123123'
PRODUCT_NAME='TESTAPP' PRODUCT_BUNDLE_IDENTIFIER='com.myapp.appapp.test'
-arch armv7 archive
hear above command works and build the app but at the end gives error like below 听到上面的命令可以正常工作并构建应用程序,但最后给出如下错误
ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
If I archive it manually it will archive successfully,I don't know what went wrong. 如果我手动存档,它将成功存档,我不知道出了什么问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.