objective-c – iMac的位置管理器

objective-c – iMac的位置管理器,第1张

概述我正在使用CLLocationManager. 我收到了这个编译错误: Ld /Users/Teguh/Library/Developer/Xcode/DerivedData/BadgerNew-bjopcgcgsjkcvcevflfbvsjwfgnu/Build/Products/Debug-iphonesimulator/BadgerNew.app/BadgerNew normal i386 我正在使用CLLocationManager.

我收到了这个编译错误:

Ld /Users/Teguh/library/Developer/Xcode/DerivedData/BadgerNew-bjopcgcgsjkcvcevflfbvsjwfgnu/Build/Products/DeBUG-iphonesimulator/BadgerNew.app/BadgerNew normal i386    cd /Users/Teguh/DropBox/badgers/BadgerNew    setenv MACOSX_DEPLOYMENT_TARGET 10.6    setenv 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-g++-4.2 -arch i386 -isysroot /Developer/Platforms/iPhonesimulator.platform/Developer/SDKs/iPhonesimulator4.3.sdk -L/Users/Teguh/library/Developer/Xcode/DerivedData/BadgerNew-bjopcgcgsjkcvcevflfbvsjwfgnu/Build/Products/DeBUG-iphonesimulator -F/Users/Teguh/library/Developer/Xcode/DerivedData/BadgerNew-bjopcgcgsjkcvcevflfbvsjwfgnu/Build/Products/DeBUG-iphonesimulator -fileList /Users/Teguh/library/Developer/Xcode/DerivedData/BadgerNew-bjopcgcgsjkcvcevflfbvsjwfgnu/Build/Intermediates/BadgerNew.build/DeBUG-iphonesimulator/BadgerNew.build/Objects-normal/i386/BadgerNew.linkfileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -o /Users/Teguh/library/Developer/Xcode/DerivedData/BadgerNew-bjopcgcgsjkcvcevflfbvsjwfgnu/Build/Products/DeBUG-iphonesimulator/BadgerNew.app/BadgerNewUndefined symbols for architecture i386:  "_OBJC_CLASS_$_CLLocationManager",referenced from:      objc-class-ref in UtilitIEsQuick.o  "_kCLLocationAccuracyBest",referenced from:      -[BNUtilitIEsQuick init] in UtilitIEsQuick.old: symbol(s) not found for architecture i386collect2: ld returned 1 exit status

那我该怎么编程CLLocationmanager呢?我的意思是,这意味着iMac上没有位置管理器吗?

解决方法 您需要将CoreLocation.framework添加到项目中. 总结

以上是内存溢出为你收集整理的objective-c – iMac的位置管理器全部内容,希望文章能够帮你解决objective-c – iMac的位置管理器所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1036339.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存