[英]ionic build fails error 65
Building my ionic app fails since this weekend: 自本周末以来,构建我的离子应用程序失败:
** BUILD FAILED **
The following build commands failed:
CompileC build/App.build/Debug-iphonesimulator/App.build/Objects-normal/i386/IonicKeyboard.o App/Plugins/com.ionic.keyboard/IonicKeyboard.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/me/Documents/app/platforms/ios/cordova/build-debug.xcconfig,-project,app.xcodeproj,ARCHS=i386,-target,app,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/me/Documents/app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/me/Documents/app/platforms/ios/build/sharedpch
OSX 10.11.3
XCode 7.2.1 (7C1002)
ionic -v
1.7.14
Today I reinstalled cordova and ionic, but I still keep getting the error. 今天,我重新安装了cordova和ionic,但仍然继续收到错误消息。 I had to adjust another issue with macports ( here ), which I fixed by setting the rights right, but still keep getting the above error. 我不得不调整macports的另一个问题( 在这里 ),我通过设置权限来解决了这个问题,但仍然出现上述错误。
Error 65 seems to have originate from within Cordova plugins. 错误65似乎源于Cordova插件内部。 I've been able to "band-aid" this issue by: 我已经可以通过以下方式“解决问题”:
cordova plugin remove <plugin name>
ionic platform remove <os>
ionic platform add <os>
cordova plugin add <plugin name>
I've also tried using sudo
while running these commands with mixed results. 在运行这些结果混合的命令时,我也尝试使用sudo
。
I fixed with following steps 我按照以下步骤修复
in xCode go-to "Build Phase" >> Under "Compile Sources" >> did you notice any missing or .m files failed to link... in my case it was "IonicKeyboard.m" file 在xCode中转到“构建阶段” >>在“编译源”下>>您是否注意到任何丢失或.m文件无法链接...在我的情况下,它是“ IonicKeyboard.m”文件
I just added the file to the list "plugins/cordova-plugin-ionic-keyboard/src/ios/IonicKeyboard.m" 我刚刚将文件添加到列表“ plugins / cordova-plugin-ionic-keyboard / src / ios / IonicKeyboard.m”
iOS 的iOS
platforms/ios
on XCode XCode上的开放platforms/ios
io.ionic.starter
in all files for a unique identifier 在所有文件中查找并替换io.ionic.starter
以获取唯一标识符 ionic cordova run ios --device --livereload
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.