0
我在Mac上使用cordova創建我的應用程序的iOS版本時遇到問題。當我在同一臺機器上的Android運行此命令,我得到一個成功的消息,'Cordova/CDV.h'文件沒有找到創建ios應用程序Cordova
cordova build android
BUILD SUCCESSFUL
Total time: 1 mins 53.473 secs
Built the following apk(s):
/Volumes/data/app/webapp/cordova/platforms/android/build/outputs/apk/android-debug.apk
但是,如果我嘗試使用該命令適用於iOS產生的,我得到一個如下所示的錯誤。
科爾多瓦構建IOS
/Volumes/data/app/webapp/cordova/platforms/ios/TheApp/Plugins/cordova-plugin-device/CDVDevice.m:24:9: fatal error:
'Cordova/CDV.h' file not found
#import <Cordova/CDV.h>
^
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/User/Library/Developer/Xcode/DerivedData/MyApp-fliapfgngglxfnbapiyopwlziapf/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/AppDelegate.o MyApp/Classes/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/User/Library/Developer/Xcode/DerivedData/MyApp-fliapfgngglxfnbapiyopwlziapf/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/MainViewController.o MyApp/Classes/MainViewController.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/User/Library/Developer/Xcode/DerivedData/MyApp-fliapfgngglxfnbapiyopwlziapf/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/CDVDevice.o MyApp/Plugins/cordova-plugin-device/CDVDevice.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(3 failures)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Volumes/data/app/webapp/cordova/platforms/ios/cordova/build-debug.xcconfig,-workspace,TheApp.xcworkspace,-scheme,TheApp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone 6s Plus,build,CONFIGURATION_BUILD_DIR=/Volumes/data/app/webapp/cordova/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Volumes/data/app/webapp/cordova/platforms/ios/build/sharedpch
Users-MacBook-Pro:cordova User$
任何幫助將不勝感激,謝謝。
嗯,這個工作完美@Ved,它的奇怪,因爲我有同樣版本的cordova它更新。 – IsaacK
聽起來不錯@IsaacChambers – Ved