我对 iOS 开发世界非常陌生。我对实现自己想法的速度印象深刻。充分利用 MPMediaQuery 等。
但是,我正在努力插入iTuneslibrary 框架。我的预期用途将是最小的。
在对我的应用程序进行代码签名并更新构建设置(/Library/Frameworks)内的框架搜索路径的搜索路径之后。关于编译简单代码示例;我收到以下错误:
ld /Users/andyfives/Library/Developer/Xcode/DerivedData/testiTunes-eyyuvregjcsyukesjqbswsnpckog/Build/Products/Debug-iphoneos/testiTunes.app/testiTunes normal armv7 cd /Users/andyfives/Development/Objective-C/testiTunes export IPHONEOS_DEPLOYMENT_TARGET=8.0 export PATH="/Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode6-Beta5.app/Contents/Developer/usr/bin:/usr/bin :/bin:/usr/sbin:/sbin" /Applications/Xcode6-Beta5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode6-Beta5.app/内容/开发者/平台/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0。sdk -L/Users/andyfives/Library/Developer/Xcode/DerivedData/testiTunes-eyyuvregjcsyukesjqbswsnpckog/Build/Products/Debug-iphoneos -F/Users/andyfives/Library/Developer/Xcode/DerivedData/testiTunes-eyyuvregjcsyukesjqbswsnpckog/Build/Products/ Debug-iphoneos -F/Library/Frameworks -filelist /Users/andyfives/Library/Developer/Xcode/DerivedData/testiTunes-eyyuvregjcsyukesjqbswsnpckog/Build/Intermediates/testiTunes.build/Debug-iphoneos/testiTunes.build/Objects-normal/armv7/ testiTunes.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=8.0 -framework iTunesLibrary -Xlinker -dependency_info -Xlinker /Users/andyfives/Library/Developer /Xcode/DerivedData/testiTunes-eyyuvregjcsyukesjqbswsnpckog/Build/Intermediates/testiTunes.build/Debug-iphoneos/testiTunes。build/Objects-normal/armv7/testiTunes_dependency_info.dat -o /Users/andyfives/Library/Developer/Xcode/DerivedData/testiTunes-eyyuvregjcsyukesjqbswsnpckog/Build/Products/Debug-iphoneos/testiTunes.app/testiTunes
ld:警告:忽略文件 /Library/Frameworks/iTunesLibrary.framework/iTunesLibrary,文件 /Library/Frameworks/iTunesLibrary.framework/iTunesLibrary 中缺少所需的架构 armv7(2 片)架构 armv7 的未定义符号:“_OBJC_CLASS_$_ITLibrary”,已引用来自:ViewController.old 中的 objc-class-ref:未找到架构 armv7 的符号
我四处寻找;没有运气。任何人都可以帮助我还是我应该专注于另一个解决方案?