Hi everybody,
After upgrading Xcode from 11.7 to 12, I encounter a strange problem when trying to build app with this command: ionic cordova build ios --release
Please note that this command works if I have the device attached via USB, also ionic cordova build ios and ionic cordova build ios --prod works aswell. Only --release flag makes the build fail.
This is what console returns:
The following build commands failed:
Ld /Users/username/Library/Developer/Xcode/DerivedData/APPNAME-ggpsbuijlnzswpeozskwbeikyiev/Build/Intermediates.noindex/APPNAME.build/Release-iphonesimulator/APPNAME.build/Objects-normal/arm64/Binary/APPNAME normal arm64
(1 failure)
xcodebuild: Command failed with exit code 65
āverbose gave this detail:
Error: xcodebuild: Command failed with exit code 65
at ChildProcess.whenDone (/Users/username/Documents/appname/node_modules/cordova-common/src/superspawn.js:125:23)
at ChildProcess.emit (events.js:193:13)
at maybeClose (internal/child_process.js:1001:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:266:5)
Same problem here, also after upgrading XCode to version 12, but with an old Ionic v1 project (@ionic/cli v6.11.11; @ionic/v1-toolkit v3.2.14; cordova v9.0.0; NodeJs v12.18.4; Gulp v4.0.2). Iām still trying to find a solution.
[UPDATE] I donāt know if itās related to this problem but, after playing around with the project for some time, I got a new error:
āCordovaError: Promise rejected with non-error: "ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https://github.com/ios-control/ios-deploy into your path, or do ānpm install -g ios-deployāā.
And, after installing āios-deployā, I could run āionic cordova build ios --releaseā with no more errors.
I havenāt found a solution. From now on, I must plug in my iPhone to archive a build, instead of just selecting Any iOS device (Generic device) from the dropdown.
Hi, any news about this problem with XCode 12?
I use OneSignal and receive these errors
ld: in /Users/dave/prj/mobile/myunipa/platforms/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/OneSignal(OneSignal-arm64-master.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/dave/prj/mobile/myunipa/platforms/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/OneSignal'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The following build commands failed:
Ld /Users/dave/Library/Developer/Xcode/DerivedData/MyUniPa-edohdxillotrtubvlpjnkrqvohyf/Build/Intermediates.noindex/MyUniPa.build/Release-iphonesimulator/MyUniPa.build/Objects-normal/arm64/Binary/MyUniPa normal arm64
(1 failure)
xcodebuild: Command failed with exit code 65