I have Sierra OS and having a issue with cordova command line build - trying to create ipa from command line for automation
The build and archive works perfectly fine when done from XCode IDE, but when using CLI i get the error pasted below.
Command: cordova build ios --device --buildConfig
I have used correct provisioning profile and team etc in build.json
What is this ".app: unknown error -1=ffffffffffffffff" how to solve it?
/usr/bin/codesign --force --sign 12C94CXXXXXXXXXXXXXXX16E9AEBF6AB06ADD --entitlements /Users/XXXX/Library/Developer/Xcode/DerivedData/XXXX_XXXX-bznjdwrmpxxmzudbdvcjspewllmt/Build/Intermediates/ArchiveIntermediates/XXXX\ XXXX/IntermediateBuildFilesPath/XXXX\ XXXX.build/Release-iphoneos/XXXX\ XXXX.build/XXXX\ XXXX.app.xcent --timestamp=none /Users/XXXX/Library/Developer/Xcode/DerivedData/XXXX_XXXX-bznjdwrmpxxmzudbdvcjspewllmt/Build/Intermediates/ArchiveIntermediates/XXXX\ XXXX/InstallationBuildProductsLocation/Applications/XXXX\ XXXX.app
/Users/XXXX/Library/Developer/Xcode/DerivedData/XXXX_XXXX-bznjdwrmpxxmzudbdvcjspewllmt/Build/Intermediates/ArchiveIntermediates/XXXX XXXX/InstallationBuildProductsLocation/Applications/XXXX XXXX.app: unknown error -1=ffffffffffffffff
Command /usr/bin/codesign failed with exit code 1
* ARCHIVE FAILED *
The following build commands failed:
CodeSign /Users/XXXX/Library/Developer/Xcode/DerivedData/XXXX_XXXX-bznjdwrmpxxmzudbdvcjspewllmt/Build/Intermediates/ArchiveIntermediates/XXXX\ XXXX/InstallationBuildProductsLocation/Applications/XXXX\ XXXX.app
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/XXXX/Documents/code-push/XXXXXXXXnew-ios/platforms/ios/cordova/build-release.xcconfig,-workspace,XXXX XXXX.xcworkspace,-scheme,XXXX XXXX,-configuration,Release,-destination,generic/platform=iOS,-archivePath,XXXX XXXX.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/XXXX/Documents/code-push/XXXXXXXXnew-ios/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/XXXX/Documents/code-push/XXXXXXXXnew-ios/platforms/ios/build/sharedpch