xcode6.3升级7.2,无法找到'Cordova/CDVViewController.h'的坑

上星期客户,联系我说,使用cordova   APP要改一些东西,安卓分分钟改完了。  到了,ios  改完后,想测试一下,结果一看手机系统前几天才升级的。也就只好把xcode升到最新的版了。   结果一升完坑了,  一直报无法找到'Cordova/CDVViewController.h'。  


找到好的解决方法


第一步,build settings 》earch paths 》 header search paths 双击 <multiple values>


$(OBJROOT)/UninstalledProducts/include 改成 $(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include







注意, 如果Cordova  中一些插件请更新最新的。


重建立一个 cordova    建立方法

命令行:cordova create hello com.mydomain.hello HelloWorld

命令行:cd hello   

命令行: cordova platform add ios


需要安装一些插件,  如微信分享,  https://github.com/xu-li/cordova-plugin-wechat  


以上方法,还是有问题,  就请安装多个版的 xcode吧

https://developer.apple.com/downloads/index.action

你也可以有两个Xcode 7.2和6.3安装。你必须重命名现有的Xcode 7.5的应用程序从Xcode的另一个名字像xcode7.2在您安装Xcode 6.3在应用程序文件夹。




Appid: __UNI__F5500F0 Command line invocation: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild archive -sdk iphoneos18.1 -project [PackagePath]/HBuilder.xcodeproj -archivePath [PackagePath]/XArchive/HBuilder.xcarchive -scheme HBuilder -configuration Debug User defaults from command line: IDEArchivePathOverride = [PackagePath]/XArchive/HBuilder.xcarchive IDEPackageSupportUseBuiltinSCM = YES Build settings from command line: SDKROOT = iphoneos18.1 Prepare packages ComputeTargetDependencyGraph note: Building targets in dependency order note: Target dependency graph (1 target) Target &#39;HBuilder&#39; in project &#39;HBuilder&#39; (no dependencies) GatherProvisioningInputs CreateBuildDescription ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk -x objective-c -c /dev/null ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.1.sdk -x c -c /dev/null ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool --version --output-format xml1 ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/actool --print-asset-tag-combinations --output-format xml1 [PackagePath]/HBuilder/Assets.xcassets ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/usr/bin/actool --version --output-format xml1 ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc --version ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -version_details ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E
03-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值