facebook整合codeign错误

时间:2012-07-11 13:49:42

标签: xcode facebook

我正在尝试将Facebook整合到我的应用

1 /我尝试了静态库(用于弧项目)并且有一条消息说“lib不是为你当前的目标构建的(armv7”。我读了数百个帖子而且无法解决pb。

2 /现在我只是拖动src并将标志-fno-objc-arc放到所有添加的标志上。

它仍然无效!

这是我的错误消息:

CodeSign /Users/sylvainguilbert/Library/Developer/Xcode/DerivedData/Aviso_0.1-fhjiibqwcoohxmcueawtpqtjuknh/Build/Products/Debug-iphoneos/Aviso_0.1.app
cd /Users/sylvainguilbert/Documents/dev/Aviso_0.1
setenv CODESIGN_ALLOCATE /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/codesign --force --sign 752c4685452b4d64922b21157564304b5db0e616 --resource-rules=/Users/sylvainguilbert/Library/Developer/Xcode/DerivedData/Aviso_0.1-fhjiibqwcoohxmcueawtpqtjuknh/Build/Products/Debug-iphoneos/Aviso_0.1.app/ResourceRules.plist armv7 armv6 --entitlements /Users/sylvainguilbert/Library/Developer/Xcode/DerivedData/Aviso_0.1-fhjiibqwcoohxmcueawtpqtjuknh/Build/Intermediates/Aviso_0.1.build/Debug-iphoneos/Aviso_0.1.build/Aviso_0.1.xcent /Users/sylvainguilbert/Library/Developer/Xcode/DerivedData/Aviso_0.1-fhjiibqwcoohxmcueawtpqtjuknh/Build/Products/Debug-iphoneos/Aviso_0.1.app

armv7:没有这样的文件或目录 命令/ usr / bin / codesign失败,退出代码为1

这让我发疯,我错过了什么?

1 个答案:

答案 0 :(得分:0)

我在这里找到了答案:Command /usr/bin/codesign failed with exit code 1: i386: No such file or directory

当我删除它们时(我的项目和我的目标都有)我的构建设置中有armv6 armv7。一切都很好。