ios – 当我打开在Xcode 4中创建的Google Maps项目时,Xcode 5会
我刚刚更新到新发布的
Xcode 5.我正在开发一个使用Google Maps iOS SDK的iOS应用程序.回到我在Xcode 4中开发时,我根据Google
instructions for adding the SDK to the project的第7步更改了我的项目设置中的Architectures设置:
在Xcode 4中一切都很好.但是,当我在Xcode 5中打开我的项目时,我在问题导航器中看到以下警告:
当我点击警告时,Xcode将我带到我的项目设置并显示一个带有“取消”和“执行更改”按钮的弹出窗口,以及它要进行的更改的以下描述
我尝试点击“执行更改”并让Xcode做任何想做的事情,而且应用程序仍然适用于模拟器.但是,当我尝试插入iPhone 5(支持ARMv7S)并在其上运行时,应用程序无法使用以下链接器错误构建: Ld /Users/macmini/Library/Developer/Xcode/DerivedData/Your_App-bmrouudjlblpafdjzhpwcuekzgwu/Build/Products/Debug-iphoneos/Your App.app/Your App normal armv7s cd "/Users/macmini/Documents/Your App" setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/macmini/Library/Developer/Xcode/DerivedData/Your_App-bmrouudjlblpafdjzhpwcuekzgwu/Build/Products/Debug-iphoneos -F/Users/macmini/Library/Developer/Xcode/DerivedData/Your_App-bmrouudjlblpafdjzhpwcuekzgwu/Build/Products/Debug-iphoneos -F/Users/macmini/Documents/Your App -filelist /Users/macmini/Library/Developer/Xcode/DerivedData/Your_App-bmrouudjlblpafdjzhpwcuekzgwu/Build/Intermediates/Your App.build/Debug-iphoneos/Your App.build/Objects-normal/armv7s/Your App.LinkFileList -dead_strip -ObjC -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=6.1 -framework SystemConfiguration -framework MapKit -framework QuartzCore -framework OpenGLES -lz -licucore -lc++ -framework ImageIO -framework GLKit -framework CoreText -framework CoreLocation -framework AVFoundation -framework CoreData -framework UIKit -framework Foundation -framework CoreGraphics -framework GoogleMaps -Xlinker -dependency_info -Xlinker /Users/macmini/Library/Developer/Xcode/DerivedData/Your_App-bmrouudjlblpafdjzhpwcuekzgwu/Build/Intermediates/Your App.build/Debug-iphoneos/Your App.build/Objects-normal/armv7s/Your App_dependency_info.dat -o /Users/macmini/Library/Developer/Xcode/DerivedData/Your_App-bmrouudjlblpafdjzhpwcuekzgwu/Build/Products/Debug-iphoneos/Your App.app/Your App ld: file is universal (2 slices) but does not contain a(n) armv7s slice: /Users/macmini/Documents/Your App/GoogleMaps.framework/GoogleMaps file '/Users/macmini/Documents/Your App/GoogleMaps.framework/GoogleMaps' for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) 一旦我恢复了Xcode所做的自动更改,我的应用程序再次为iPhone 5编译好了 – 但当然我收到了警告. 我怎样才能满足Xcode并摆脱警告,同时仍允许我的应用程序为iPhone 5成功构建? 解决方法
哎呀 – 因为它发生了这个问题,我发现这个问题后我只花了几秒钟的时间来找到答案:
>单击问题导航器中的“验证项目设置”警告. 现在您的设置与以前一样,您可以为iPhone 5构建,但警告消失了. 我花了很多时间发布这个问题,现在感觉有些暗淡,但是我在这里留下问题和答案,以防将来有人帮助. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |