Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Chinese project name can not cordova build ios, but the English name of the project can cordova build ios #185

Closed
ericwangwang opened this issue Jul 7, 2016 · 3 comments

Comments

@ericwangwang
Copy link

** BUILD FAILED **

The following build commands failed:
CompileC build/中国.build/Debug-iphonesimulator/中国.build/Objects-normal/i386/HCPLDPlugin.o 中国/Plugins/cordova-hot-code-push-local-dev-addon/HCPLDPlugin.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler

Chinese project name can not cordova build ios, but the English name of the project can cordova build ios

@nikDemyankov
Copy link
Member

I see it fails while building local-dev-addon. Have you tried to build the project without it? Just with chcp plugin?

@ericwangwang
Copy link
Author

cordova create china m.test.com 中国
cd china
cordova platform add ios
cordova plugin add cordova-hot-code-push-plugin
cordova plugin add cordova-hot-code-push-local-dev-addon
cordova build ios

#The above will get an error
---------------------------------
cordova create china m.test.com china
cd china
cordova platform add ios
cordova plugin add cordova-hot-code-push-plugin
cordova plugin add cordova-hot-code-push-local-dev-addon
cordova build ios

#The above is normal, because it is the English name

@nikDemyankov
Copy link
Member

Thanks for the way to reproduce it.

Issue lies in cordova-hot-code-push-local-dev-addon. If you remove it - project will compile just fine:

cordova create china m.test.com 中国
cd china
cordova platform add ios
cordova plugin add cordova-hot-code-push-plugin
cordova build ios

cordova-hot-code-push-local-dev-addon uses Swift code, and for some reason plugin can't inject bridging header into the project because of the chinese characters. Created an issue in that repo: nordnet/cordova-hot-code-push-local-dev-addon#11 . Discussions should be continued in there.

Right now I don't have a fix for local-dev add-on. I think there are only two options now:

  1. If you want to use it for development - rename project to English. Just for development time. When it's time to release - you will remove local-dev add-on anyway, and will rename the project. So it should build and work just fine.
  2. Don't use cordova-hot-code-push-local-dev-addon at all, just the main plugin.

Will close this one, since the issue with the other plugin.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants