question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ionic build iOS return in xcode error when compiling

See original GitHub issue

I’m submitting a … (check one with “x”)

  • question
  • [ x ] any problem or bug report
  • feature request

If you choose ‘problem or bug report’, please select OS: (check one with “x”)

  • Android
  • [ x ] iOS

cordova information: (run $> cordova plugin list)

insert the output from the command here

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

I’m using the last version of your forked @ionic-native:

    "@ionic-native/core": "file:../ionic-native/dist/@ionic-native/core",
    "@ionic-native/google-maps": "file:../ionic-native/dist/@ionic-native/google-maps"

Current behavior:

The ionic cordova build ios --prod is crashing withe the new language support strings:

CopyStringsFile build/emulator/Cheeper.app/pgm_Localizable.strings Cheeper/Resources/Base.lproj/pgm_Localizable.strings
    cd /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cesarpinheiro/Desktop/cheeper-ios/node_modules/.bin:/usr/local/bin:/usr/local/git/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/root/Android/Sdk/tools:/root/Android/Sdk/platform-tools:/Applications/Android Studio.app/sdk/platform-tools:/Applications/Android Studio.app/sdk/tools"
    builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios/build/emulator/Cheeper.app -- Cheeper/Resources/Base.lproj/pgm_Localizable.strings

CopyStringsFile build/emulator/Cheeper.app/pgm_Localizable.strings Cheeper/Resources/ja.lproj/pgm_Localizable.strings
    cd /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cesarpinheiro/Desktop/cheeper-ios/node_modules/.bin:/usr/local/bin:/usr/local/git/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/root/Android/Sdk/tools:/root/Android/Sdk/platform-tools:/Applications/Android Studio.app/sdk/platform-tools:/Applications/Android Studio.app/sdk/tools"
    builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios/build/emulator/Cheeper.app -- Cheeper/Resources/ja.lproj/pgm_Localizable.strings

CopyStringsFile build/emulator/Cheeper.app/pgm_Localizable.strings Cheeper/Resources/ru.lproj/pgm_Localizable.strings
    cd /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cesarpinheiro/Desktop/cheeper-ios/node_modules/.bin:/usr/local/bin:/usr/local/git/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/root/Android/Sdk/tools:/root/Android/Sdk/platform-tools:/Applications/Android Studio.app/sdk/platform-tools:/Applications/Android Studio.app/sdk/tools"
    builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios/build/emulator/Cheeper.app -- Cheeper/Resources/ru.lproj/pgm_Localizable.strings

CopyStringsFile build/emulator/Cheeper.app/pgm_Localizable.strings Cheeper/Resources/uk.lproj/pgm_Localizable.strings
    cd /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cesarpinheiro/Desktop/cheeper-ios/node_modules/.bin:/usr/local/bin:/usr/local/git/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/root/Android/Sdk/tools:/root/Android/Sdk/platform-tools:/Applications/Android Studio.app/sdk/platform-tools:/Applications/Android Studio.app/sdk/tools"
    builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios/build/emulator/Cheeper.app -- Cheeper/Resources/uk.lproj/pgm_Localizable.strings

CopyStringsFile build/emulator/Cheeper.app/pgm_Localizable.strings Cheeper/Resources/pt-BR.lproj/pgm_Localizable.strings
    cd /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cesarpinheiro/Desktop/cheeper-ios/node_modules/.bin:/usr/local/bin:/usr/local/git/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/root/Android/Sdk/tools:/root/Android/Sdk/platform-tools:/Applications/Android Studio.app/sdk/platform-tools:/Applications/Android Studio.app/sdk/tools"
    builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios/build/emulator/Cheeper.app -- Cheeper/Resources/pt-BR.lproj/pgm_Localizable.strings

CopyStringsFile build/emulator/Cheeper.app/pgm_Localizable.strings Cheeper/Resources/de.lproj/pgm_Localizable.strings
    cd /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cesarpinheiro/Desktop/cheeper-ios/node_modules/.bin:/usr/local/bin:/usr/local/git/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/root/Android/Sdk/tools:/root/Android/Sdk/platform-tools:/Applications/Android Studio.app/sdk/platform-tools:/Applications/Android Studio.app/sdk/tools"
    builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios/build/emulator/Cheeper.app -- Cheeper/Resources/de.lproj/pgm_Localizable.strings
error: failed to remove /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios/build/emulator/Cheeper.app/pgm_Localizable.strings: “pgm_Localizable.strings” couldn’t be removed.

CopyStringsFile build/emulator/Cheeper.app/pgm_Localizable.strings Cheeper/Resources/fr.lproj/pgm_Localizable.strings
    cd /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/cesarpinheiro/Desktop/cheeper-ios/node_modules/.bin:/usr/local/bin:/usr/local/git/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/root/Android/Sdk/tools:/root/Android/Sdk/platform-tools:/Applications/Android Studio.app/sdk/platform-tools:/Applications/Android Studio.app/sdk/tools"
    builtin-copyStrings --validate --inputencoding utf-8 --outputencoding binary --outdir /Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios/build/emulator/Cheeper.app -- Cheeper/Resources/fr.lproj/pgm_Localizable.strings

2018-02-22 15:36:44.804 xcodebuild[8905:406272]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-13756/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:757
Details:  unexpected successful exit code from cancelled command <C0015:'CopyStringsFile pgm_Localizable.strings':P6>
Object:   <PBXTargetBuildContext: 0x7fa5ab8f6ea0>
Method:   -createCommandInvocationRecordFromInvocation:
Thread:   <NSThread: 0x7fa5a8fb78e0>{number = 13, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
2018-02-22 15:36:44.805 xcodebuild[8905:406272]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/IDEXcode3ProjectSupport/IDEXcode3ProjectSupport-13756/Xcode3Core/LegacyProjects/Frameworks/DevToolsCore/DevToolsCore/BuildSystem/Runtime/PBXTargetBuildContext.mm:757
Details:  unexpected successful exit code from cancelled command <C0008:'CpResource GoogleMaps.bundle':P6>
Object:   <PBXTargetBuildContext: 0x7fa5ab8f6ea0>
Method:   -createCommandInvocationRecordFromInvocation:
Thread:   <NSThread: 0x7fa5a8fb78e0>{number = 13, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
** BUILD FAILED **


The following build commands failed:
	CopyStringsFile build/emulator/Cheeper.app/pgm_Localizable.strings Cheeper/Resources/de.lproj/pgm_Localizable.strings
(1 failure)
(node:8796) UnhandledPromiseRejectionWarning: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios/cordova/build-debug.xcconfig,-workspace,Cheeper.xcworkspace,-scheme,Cheeper,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/cesarpinheiro/Desktop/cheeper-ios/platforms/ios/build/sharedpch
(node:8796) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8796) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Expected behavior:

The file should build without crash like it used to be.

Screen capture or video record:

Related code, data or error log (please format your code or data):

The person who share your project files on Github (or other git repository) is in faster lane than other people.
Please share your project files on Github or others(Bitbucket, Gitlabs...etc).
If you don't want to share your project files, please create a demo project, then share it.

Screen captures, and/or native logs(such as Logcat, xcode logs) are appreciate.

Giving much information, you are waiting time is less.
Thank you for your cooperation.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:35 (19 by maintainers)

github_iconTop GitHub Comments

4reactions
wf9a5m75commented, Feb 23, 2018

Open the project with xcode, then product > clean

3reactions
wf9a5m75commented, Mar 15, 2018

update: cordova-plugin-googlemaps@2.2.8 solves the ios building problem completely.

$> cordova plugin rm cordova-plugin-googlemaps

$> cordova plugin add cordova-plugin-googlemaps@2.2.8 --variable ...
Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic build on iOS returns "BUILD FAILED" - Stack Overflow
It was an issue due to xcode compatibility of plugin. uninstalling current xcode and installing xcode 7.3.1 solved issue. Note: It is due...
Read more >
Getting error on ios build - Ionic Forum
Running command - failed! [ERROR] An error occurred while running cordova build ios (exit code 1): (truncated) ... ms/ios/build/device ...
Read more >
cannot find type in scope xcode 13 | Apple Developer Forums
I had many swift compiler errors of this type : "Cannot find type 'className' in scope" after passing from Xcode 12.5 to Xcode...
Read more >
ionic build ios error ionic cordova build ios | Edureka Community
When i run "ionic cordova build ios" get error below in terminal: The ... x86_64 (1 failure) Error: Error code 65 for command:...
Read more >
Xcodebuild Error 65
I tried a few things in this scenario. xcodebuild failed with return code: ... 0, 'cordova build ios' gives error: xcodebuild: Command failed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found