$proj points to .xcodeproj file
$prov points to .mobileprovision file
$ipadest points to output folder eg "/Home/IpaOut/"
$ipaname is desired ipa name eg "appname.ipa"
If I run without -m flag (mobileprovision), it works fine. It builds using the default debug development profile. I want to build ipa for apple test-flight distribution. So, I am passing -m parameter pointing to distribution profile and running into following Error:
The following build commands failed:
CompileC /Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/Bulk_Assembly-CSharp_1.o Classes/Native/Bulk_Assembly-CSharp_1.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Building IPA using: ipa build -p $proj -c "Release" -m $prov -d $ipadest -ipa $ipaname --verbose --clean --identity
$proj points to .xcodeproj file $prov points to .mobileprovision file $ipadest points to output folder eg "/Home/IpaOut/" $ipaname is desired ipa name eg "appname.ipa"
If I run without -m flag (mobileprovision), it works fine. It builds using the default debug development profile. I want to build ipa for apple test-flight distribution. So, I am passing -m parameter pointing to distribution profile and running into following Error:
/Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/Bulk_Assembly-CSharp_2.o Classes/Native/Bulk_Assembly-CSharp_2.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler cd /Users/dummyUser/Backup/TestAppBuild/IOS/6.1-1601092034 export LANG=en_US.US-ASCII export PATH="/Applications/Xcode7.0/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode7.0/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/dummyUser/gsutil" /Applications/Xcode7.0/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch arm64 -fmessage-length=210 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=c++11 -stdlib=libc++ -fmodules -gmodules -fmodules-cache-path=/Users/dummyUser/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/dummyUser/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fno-rtti -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode7.0/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -miphoneos-version-min=7.0 -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -iquote /Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/TestApp-generated-files.hmap -I/Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/TestApp-own-target-headers.hmap -I/Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/TestApp-all-target-headers.hmap -iquote /Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/TestApp-project-headers.hmap -I/Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/include -I/Users/dummyUser/Backup/TestAppBuild/IOS/6.1-1601092034/Classes -I/Users/dummyUser/Backup/TestAppBuild/IOS/6.1-1601092034 -I/Users/dummyUser/Backup/TestAppBuild/IOS/6.1-1601092034/Classes/Native -I/Users/dummyUser/Backup/TestAppBuild/IOS/6.1-1601092034/Libraries/bdwgc/include -I/Users/dummyUser/Backup/TestAppBuild/IOS/6.1-1601092034/Libraries/libil2cpp/include -I/Users/dummyUser/Development/Unity/MOG/TestApp/Assets/Facebook/Editor/iOS -I/Users/dummyUser/Development/Unity/MOG/TestApp/Assets/Facebook/Scripts -I/Users/dummyUser/Backup/TestAppBuild/IOS/6.1-1601092034/Everyplay -I/Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources/arm64 -I/Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources -F/Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -F/Users/dummyUser/Backup/TestAppBuild/IOS/6.1-1601092034/Everyplay -DINIT_SCRIPTING_BACKEND=1 -include /Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/PrecompiledHeaders/Prefix-bsadtajksgvpgndgwwmxzrvmkfls/Prefix.pch -MMD -MT dependencies -MF /Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/Bulk_Assembly-CSharp_2.d --serialize-diagnostics /Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/Bulk_Assembly-CSharp_2.dia -c /Users/dummyUser/Backup/TestAppBuild/IOS/6.1-1601092034/Classes/Native/Bulk_Assembly-CSharp_2.cpp -o /Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/Bulk_Assembly-CSharp_2.o
\ ARCHIVE FAILED **
The following build commands failed: CompileC /Users/dummyUser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ehsueqcjfvkrlohhgqdyyjiapdny/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/Bulk_Assembly-CSharp_1.o Classes/Native/Bulk_Assembly-CSharp_1.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure)
Any help will be appreciated.