I get this error when I try to build a project using CocoaLibSpotify.
当我试图使用cocoalition bspotify构建一个项目时,我犯了这个错误。
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)
I used lipo
to check the architectures in the referenced static library:
我使用lipo检查参考静态库中的架构:
$ 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
isn't arm64
the right label for x86_64
?
arm64不是x86_64的正确标签吗?
What should I do to fix this?
我该怎么解决这个问题呢?
1 个解决方案
#1
2
CocoaLibSpotify doesn't support arm64
(64-bit device) or x86_64
(64-bit Simulator) for iOS. To build an app with CocoaLibSpotify, you can only target armv6
, armv7
or armv7s
.
cocoalition bspotify不支持iOS上的arm64(64位设备)或x86_64(64位模拟器)。要使用cocoalition bspotify构建一个应用程序,您只能针对armv6、armv7或armv7s。
For a more modern library, might I suggest the new Spotify iOS SDK?
对于一个更现代的库,我可以推荐新的Spotify iOS SDK吗?
#1
2
CocoaLibSpotify doesn't support arm64
(64-bit device) or x86_64
(64-bit Simulator) for iOS. To build an app with CocoaLibSpotify, you can only target armv6
, armv7
or armv7s
.
cocoalition bspotify不支持iOS上的arm64(64位设备)或x86_64(64位模拟器)。要使用cocoalition bspotify构建一个应用程序,您只能针对armv6、armv7或armv7s。
For a more modern library, might I suggest the new Spotify iOS SDK?
对于一个更现代的库,我可以推荐新的Spotify iOS SDK吗?