I am trying to archive my project for one of my project schemes using: xcodebuild
command,
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.