|
本帖最后由 yuzhaodan 于 2017-4-6 18:20 编辑
在虚拟机的mac上打包app一直报这个错误,请问老师这是怎么回事
error: /Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/CordovaLib/Classes/NSDictionary+Extensions.h: No such file or directory
CpHeader Classes/CDVInvokedUrlCommand.h /Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/build/device/include/Cordova/CDVInvokedUrlCommand.h
cd /Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/CordovaLib
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/x5/Downloads/BeX5_V3.6-mac/node:/var/folders/gj/xjngvx493vg4y4njyc8w_vr00000gn/T/5567699f-4bf5-4d8e-b4b7-fd5f0cfd6b02/java/jdk1.8-x64/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/CordovaLib/Classes/CDVInvokedUrlCommand.h /Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/build/device/include/Cordova
error: /Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/CordovaLib/Classes/CDVInvokedUrlCommand.h: No such file or directory
ERROR building one of the platforms: Error: /Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
** BUILD FAILED **
The following build commands failed:
CpHeader Classes/NSDictionary+Extensions.h /Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/build/device/include/Cordova/NSDictionary+Extensions.h
CpHeader Classes/CDVInvokedUrlCommand.h /Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/build/device/include/Cordova/CDVInvokedUrlCommand.h
(2 failures)
Error code 65 for command: xcodebuild with args: -xcconfig,/Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/cordova/build-debug.xcconfig,-project,macTest.xcodeproj,ARCHS=armv7 arm64,-target,macTest,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/build/sharedpch
Error: /Users/x5/Downloads/BeX5_V3.6-mac/model/Native/macTest/build/src/platforms/ios/cordova/build: Command failed with exit code 2
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildIOS" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
/var/folders/gj/xjngvx493vg4y4njyc8w_vr00000gn/T/5567699f-4bf5-4d8e-b4b7-fd5f0cfd6b02/pack.xml:118: exec returned: 1
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
at com.justep.deploy.app.utils.Builder.main(Unknown Source)
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: 253
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
|
|