我正在尝试在我的iphone上运行Facebook DemoApp,我收到以下错误 (它在模拟器上没有错误地工作)
请帮帮我
***************************** Build DemoApp of project DemoApp with configuration Debug Ld build/DemoApp.build/Debug-iphoneos/DemoApp.build/Objects-normal/armv6/DemoApp normal armv6 cd /Users/aumidwilliams/Downloads/facebook-facebook-ios-sdk-57818a0/sample/DemoApp setenv IPHONEOS_DEPLOYMENT_TARGET 4.0 setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk -L/Users/aumidwilliams/Downloads/facebook-facebook-ios-sdk-57818a0/sample/DemoApp/build/Debug-iphoneos -F/Users/aumidwilliams/Downloads/facebook-facebook-ios-sdk-57818a0/sample/DemoApp/build/Debug-iphoneos -filelist /Users/aumidwilliams/Downloads/facebook-facebook-ios-sdk-57818a0/sample/DemoApp/build/DemoApp.build/Debug-iphoneos/DemoApp.build/Objects-normal/armv6/DemoApp.LinkFileList -dead_strip -fopenmp -miphoneos-version-min=4.0 -framework Foundation -framework UIKit -framework CoreGraphics -o /Users/aumidwilliams/Downloads/facebook-facebook-ios-sdk-57818a0/sample/DemoApp/build/DemoApp.build/Debug-iphoneos/DemoApp.build/Objects-normal/armv6/DemoApp arm-apple-darwin10-gcc-4.2.1: libgomp.spec: No such file or directory Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 Ld build/DemoApp.build/Debug-iphoneos/DemoApp.build/Objects-normal/armv7/DemoApp normal armv7 cd /Users/aumidwilliams/Downloads/facebook-facebook-ios-sdk-57818a0/sample/DemoApp setenv IPHONEOS_DEPLOYMENT_TARGET 4.0 setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.0.sdk -L/Users/aumidwilliams/Downloads/facebook-facebook-ios-sdk-57818a0/sample/DemoApp/build/Debug-iphoneos -F/Users/aumidwilliams/Downloads/facebook-facebook-ios-sdk-57818a0/sample/DemoApp/build/Debug-iphoneos -filelist /Users/aumidwilliams/Downloads/facebook-facebook-ios-sdk-57818a0/sample/DemoApp/build/DemoApp.build/Debug-iphoneos/DemoApp.build/Objects-normal/armv7/DemoApp.LinkFileList -dead_strip -fopenmp -miphoneos-version-min=4.0 -framework Foundation -framework UIKit -framework CoreGraphics -o /Users/aumidwilliams/Downloads/facebook-facebook-ios-sdk-57818a0/sample/DemoApp/build/DemoApp.build/Debug-iphoneos/DemoApp.build/Objects-normal/armv7/DemoApp arm-apple-darwin10-gcc-4.2.1: libgomp.spec: No such file or directory Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
答案 0 :(得分:12)
在项目中取消选中“启用OpenMP支持” - >编辑项目设置 - > Build为我解决了这个问题。