Ld /Users/parradoxx/library/Developer/Xcode/DerivedData/Locations-dbbkuqswxbvwszevbplxgtcndmeo/Build/Products/DeBUG-iphonesimulator/Locations.app/Locations normal i386cd /Users/parradoxx/Projects/Locationssetenv MACOSX_DEPLOYMENT_TARGET 10.6setenv PATH "/Developer/Platforms/iPhonesimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"/Developer/Platforms/iPhonesimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator4.3.sdk -L/Users/parradoxx/library/Developer/Xcode/DerivedData/Locations-dbbkuqswxbvwszevbplxgtcndmeo/Build/Products/DeBUG-iphonesimulator -F/Users/parradoxx/library/Developer/Xcode/DerivedData/Locations-dbbkuqswxbvwszevbplxgtcndmeo/Build/Products/DeBUG-iphonesimulator -F/Users/parradoxx/Projects/Locations -fileList /Users/parradoxx/library/Developer/Xcode/DerivedData/Locations-dbbkuqswxbvwszevbplxgtcndmeo/Build/Intermediates/Locations.build/DeBUG-iphonesimulator/Locations.build/Objects-normal/i386/Locations.linkfileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework CoreLocation -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -o /Users/parradoxx/library/Developer/Xcode/DerivedData/Locations-dbbkuqswxbvwszevbplxgtcndmeo/Build/Products/DeBUG-iphonesimulator/Locations.app/LocationsUndefined symbols for architecture i386: "_OBJC_CLASS_$_CLLocationManager",referenced from: objc-class-ref in RootVIEwController.old: symbol(s) not found for architecture i386collect2: ld returned 1 exit status
我已经阅读过关于需要链接CoreLocation框架的类似帖子,而且据我所知,我已经知道了.实际上,它在Frameworks目录中已经有两次了.但是,我怀疑它是一个链接器问题,这让我头疼.我看到的混淆是当针对iOS时对MACOS的引用.
自从它成为可用以来,我一直在成功使用Xcode 4.这是我对XCode的第一次打嗝,它让我有点迷失.我很乐意按要求提供更多信息.
解决方法 链接到CoreLocation.framework很容易.在XCode4中,单击左列顶部的项目图标(项目导航器)以在主区域中查找构建阶段.在Build Phases选项卡下,展开link Binary With librarIEs选项卡.单击符号以从列表中选择CoreLocation.framework.而已! 总结以上是内存溢出为你收集整理的ios4 – Xcode 4.0.1中有关CoreLocation框架的未定义符号错误全部内容,希望文章能够帮你解决ios4 – Xcode 4.0.1中有关CoreLocation框架的未定义符号错误所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)