iPhone应用程序在模拟器中运行,但不在设备上运行

发布于 2024-09-17 20:57:26 字数 2817 浏览 8 评论 0原文

我尝试在 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

I am trying to run the Facebook DemoApp on my iphone and I get the following errors
(it works without errors on the simulator)

Please help me

*****************************
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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

儭儭莪哋寶赑 2024-09-24 20:57:26

取消选中项目中的“启用 OpenMP 支持”->编辑项目设置 ->构建为我​​解决了问题。

Unchecking "Enable OpenMP Support" in Project -> Edit Project Settings -> Build fixed the problem for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文