我是新來蠡,我想使用這裏提供的示例應用程序(https://github.com/calabash/calabash-ios-example)學習蠡葫蘆-IOS - 符號(S)沒有找到i386硬件架構 - 連接命令退出碼失敗1
我已經下載了壓縮的項目,並遵循了'使用Xcode進行手動設置'一節中提供的步驟 - https://github.com/calabash/calabash-ios。
但是,當我嘗試構建項目時,它失敗,出現以下錯誤。
由於我無法解決錯誤,我刪除了-cal方案,從Xcode項目的框架文件夾中刪除了calabash框架,並使用了'calabash-ios setup'選項。這創建了一個新的-cal方案。但是當我嘗試構建-cal方案時,我仍然遇到以下錯誤。我檢查了構建設置中的其他鏈接器標誌,並將其設置爲項目文件夾中的葫蘆框架。
我能夠成功地建立沒有葫蘆計劃的項目。所以這似乎是葫蘆設置的問題。你能不能讓我知道我該如何解決這個問題?
Build target LPSimpleExample-cal
Project LPSimpleExample | Configuration Debug | Destination iPhone 6 | SKD Simulator -iOS 8.0
Ld /Users/eswar/Library/Developer/Xcode/DerivedData/LPSimpleExample-gwyzlvixnflcwydwrtizzsfiwete/Build/Products/Debug-iphonesimulator/LPSimpleExample\ copy.app/LPSimpleExample\ copy normal i386
cd "/Users/eswar/Workspace/calabash projects/calabash-ios-example-2"
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -L/Users/eswar/Library/Developer/Xcode/DerivedData/LPSimpleExample-gwyzlvixnflcwydwrtizzsfiwete/Build/Products/Debug-iphonesimulator -F/Users/eswar/Library/Developer/Xcode/DerivedData/LPSimpleExample-gwyzlvixnflcwydwrtizzsfiwete/Build/Products/Debug-iphonesimulator -F/Users/eswar/Workspace/calabash\ projects/calabash-ios-example-2 -filelist /Users/eswar/Library/Developer/Xcode/DerivedData/LPSimpleExample-gwyzlvixnflcwydwrtizzsfiwete/Build/Intermediates/LPSimpleExample.build/Debug-iphonesimulator/LPSimpleExample-cal.build/Objects-normal/i386/LPSimpleExample\ copy.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -force_load /Users/eswar/Workspace/calabash\ projects/calabash-ios-example-2/calabash.framework/calabash -lstdc++ -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.0 -framework CFNetwork -framework MapKit -framework UIKit -framework Foundation -framework CoreGraphics -framework calabash -Xlinker -dependency_info -Xlinker /Users/eswar/Library/Developer/Xcode/DerivedData/LPSimpleExample-gwyzlvixnflcwydwrtizzsfiwete/Build/Intermediates/LPSimpleExample.build/Debug-iphonesimulator/LPSimpleExample-cal.build/Objects-normal/i386/LPSimpleExample\ copy_dependency_info.dat -o /Users/eswar/Library/Developer/Xcode/DerivedData/LPSimpleExample-gwyzlvixnflcwydwrtizzsfiwete/Build/Products/Debug-iphonesimulator/LPSimpleExample\ copy.app/LPSimpleExample\ copy
Undefined symbols for architecture i386:
"_SecItemAdd", referenced from:
-[LPSSKeychainQuery save:] in calabash(LPSSKeychainQuery.o)
"_SecItemCopyMatching", referenced from:
-[LPSSKeychainQuery fetchAll:] in calabash(LPSSKeychainQuery.o)
-[LPSSKeychainQuery fetch:] in calabash(LPSSKeychainQuery.o)
"_SecItemDelete", referenced from:
-[LPSSKeychainQuery deleteItem:] in calabash(LPSSKeychainQuery.o)
"_kSecAttrAccessible", referenced from:
-[LPSSKeychainQuery save:] in calabash(LPSSKeychainQuery.o)
"_kSecAttrAccount", referenced from:
-[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)
"_kSecAttrLabel", referenced from:
-[LPSSKeychainQuery save:] in calabash(LPSSKeychainQuery.o)
"_kSecAttrService", referenced from:
-[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)
"_kSecAttrSynchronizable", referenced from:
-[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)
"_kSecAttrSynchronizableAny", referenced from:
-[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)
"_kSecClass", referenced from:
-[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)
"_kSecClassGenericPassword", referenced from:
-[LPSSKeychainQuery query] in calabash(LPSSKeychainQuery.o)
"_kSecMatchLimit", referenced from:
-[LPSSKeychainQuery fetchAll:] in calabash(LPSSKeychainQuery.o)
-[LPSSKeychainQuery fetch:] in calabash(LPSSKeychainQuery.o)
"_kSecMatchLimitAll", referenced from:
-[LPSSKeychainQuery fetchAll:] in calabash(LPSSKeychainQuery.o)
"_kSecMatchLimitOne", referenced from:
-[LPSSKeychainQuery fetch:] in calabash(LPSSKeychainQuery.o)
"_kSecReturnAttributes", referenced from:
-[LPSSKeychainQuery fetchAll:] in calabash(LPSSKeychainQuery.o)
"_kSecReturnData", referenced from:
-[LPSSKeychainQuery fetch:] in calabash(LPSSKeychainQuery.o)
"_kSecValueData", referenced from:
-[LPSSKeychainQuery save:] in calabash(LPSSKeychainQuery.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
類似的問題已發佈here和約書亞建議升級到5.1.1的Xcode和SDK 7.0。不過,我已經使用Xcode的6.01和下面是我的SDK版本:
的SDK: OS X:10.9:(13F26) 的iOS:8.0:(12A365)
iPhone模擬器: 7.1:(11D167) 8.0:(12A365)
其他信息:
xcode的安裝位置 /Applications/Xcode.app/Contents/Developer
的Xcode版本 的Xcode 6.0.1 生成版本6A317
蠡版本 0.11.0
calabash.framework版本 0.11.0
謝謝傑里米,這對我很有幫助。 – Eswar 2014-11-04 22:51:27