swift - How do I make sure my static library has the right architectures for CocoaLibSpotify? -
swift - How do I make sure my static library has the right architectures for CocoaLibSpotify? -
i error when seek build project using cocoalibspotify.
ld: warning: directory not found alternative '-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 architecture x86_64: "_objc_class_$_spsession", referenced from: __tmacso9spsession in detailviewcontroller.o ld: symbol(s) not found architecture x86_64 clang: error: linker command failed exit code 1 (use -v see invocation) i used lipo check architectures in referenced static library:
$ lipo -info /users/tgm/library/developer/xcode/deriveddata/cocoalibspotify_ios_library-gtxluzeubophcpfplfiyijlecxzt/build/products/debug-iphoneos/libcocoalibspotify.a architectures in fat file: /users/tgm/library/developer/xcode/deriveddata/cocoalibspotify_ios_library-gtxluzeubophcpfplfiyijlecxzt/build/products/debug-iphoneos/libcocoalibspotify.a are: armv7 arm64 isn't arm64 right label x86_64?
what should prepare this?
cocoalibspotify doesn't back upwards arm64 (64-bit device) or x86_64 (64-bit simulator) ios. build app cocoalibspotify, can target armv6, armv7 or armv7s.
for more modern library, might suggest new spotify ios sdk?
swift libspotify cocoalibspotify-2.0
Comments
Post a Comment