file '/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhone

新QQ交流群:418536818,之前的群已满


项目之前是正常运行的,Xocde6中模拟器也没有问题,但是真机的时候会报错

file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAccelerometer.h' has been modified since the precompiled header '/Users/lion/Library/Developer/Xcode/DerivedData/ModuleCache/3OQQ9G3BB8KEO/UIKit.pcm' was built 

fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h' has been modified since the precompiled header '/Users/weixuewu/Library/Developer/Xcode/DerivedData/JiaoWuXiTong-grltjakjujuowvcvrkqlqrwpbqfr/Build/Intermediates/PrecompiledHeaders/Pods-AFNetworking-prefix-esbdmbdlgmazudenvxmluxydclkd/Pods-AFNetworking-prefix.pch.pch' was built

note: '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITableView.h' required by '/Users/weixuewu/Library/Developer/Xcode/DerivedData/ModuleCache/3HIREQHFIR4KN/UIKit-2M4VYLEDI34V0.pcm'

note: '/Users/weixuewu/Library/Developer/Xcode/DerivedData/ModuleCache/3HIREQHFIR4KN/UIKit-2M4VYLEDI34V0.pcm' required by '/Users/weixuewu/Library/Developer/Xcode/DerivedData/JiaoWuXiTong-grltjakjujuowvcvrkqlqrwpbqfr/Build/Intermediates/PrecompiledHeaders/Pods-AFNetworking-prefix-esbdmbdlgmazudenvxmluxydclkd/Pods-AFNetworking-prefix.pch.pch'

note: please rebuild precompiled header '/Users/weixuewu/Library/Developer/Xcode/DerivedData/grltjakjujuowvcvrkqlqrwpbqfr/Build/Intermediates/PrecompiledHeaders/Pods-AFNetworking-prefix-esbdmbdlgmazudenvxmluxydclkd/Pods-AFNetworking-prefix.pch.pch'

1 error generated.

之后百度之,需要删除警告中note的文件

打开终端输入open /Users/weixuewu/Library/Developer/Xcode/DerivedData/ModuleCache/

回车打开文件夹,open后面是note中显示的文件路径,找到对应的pch文件Pods-AFNetworking-prefix.pch.pch删除,然后clean一下编译运行就可以正常在真机中运行了

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 'HBuilder' in project 'HBuilder' (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、付费专栏及课程。

余额充值