2
CocoaLibSpotify를 사용하여 프로젝트를 만들 때이 오류가 발생합니다.내 정적 라이브러리에 CocoaLibSpotify에 적합한 아키텍처가 있는지 어떻게 확인합니까?
$ lipo -info /Users/tgm/Library/Developer/Xcode/DerivedData/CocoaLibSpotify_iOS_Library-gtxluzeubophcpfplfiyijlecxzt/Build/Products/Debug-iphoneos/libCocoaLibSpotify.a
Architectures in the fat file: /Users/tgm/Library/Developer/Xcode/DerivedData/CocoaLibSpotify_iOS_Library-gtxluzeubophcpfplfiyijlecxzt/Build/Products/Debug-iphoneos/libCocoaLibSpotify.a are: armv7 arm64
는 arm64
가 x86_64
에 적합한 라벨되지 않습니다 :
ld: warning: directory not found for option '-FLibrary/libspotify-12.1.64-iOS-universal'
ld: warning: ignoring file /Users/tgm/Library/Developer/Xcode/DerivedData/CocoaLibSpotify_iOS_Library-gtxluzeubophcpfplfiyijlecxzt/Build/Products/Debug-iphoneos/libCocoaLibSpotify.a, missing required architecture x86_64 in file /Users/tgm/Library/Developer/Xcode/DerivedData/CocoaLibSpotify_iOS_Library-gtxluzeubophcpfplfiyijlecxzt/Build/Products/Debug-iphoneos/libCocoaLibSpotify.a (2 slices)
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SPSession", referenced from:
__TMaCSo9SPSession in DetailViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
나는 참조 된 정적 라이브러리의 구조를 확인
lipo
를 사용?
이 문제를 해결하려면 어떻게해야합니까?
귀하 또는 귀하의 동료가 sdk의 각 버전 (최소한 최신 버전)의 기능 목록을 유지합니까? – Michael