cordova-plugin-googlemaps: Ionic build iOS return in xcode error when compiling
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.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 35 (19 by maintainers)
Commits related to this issue
- Bug fix: can not build ios (#2104) — committed to mapsplugin/cordova-plugin-googlemaps by wf9a5m75 6 years ago
- Bug fix: can not build ios (#2104) — committed to mapsplugin/cordova-plugin-googlemaps by wf9a5m75 6 years ago
- French causes build error on iOS (#2104) — committed to mapsplugin/cordova-plugin-googlemaps by wf9a5m75 6 years ago
- Change the localization way for iOS (#2143, #2085, #2104, #2138, #2134, #2121) — committed to mapsplugin/cordova-plugin-googlemaps by wf9a5m75 6 years ago
Open the project with
xcode, thenproduct > cleanupdate: cordova-plugin-googlemaps@2.2.8 solves the ios building problem completely.
Ok, I finally figured out the reason in the
fr.lproj/pgm_Localizable.stings. French uses apostrophe, but this broken the file format. I fixed the file, and of course I confirmed the build process work perfectly.So, please reinstall the plugin from the multiple_maps branch.
Did you reinstall the plugin? I have no problem with that command.