ios - 错误体系结构armv7的 undefined symbol : “_RELEASE_SAFELY” , referenced from:

标签 ios iphone compiler-errors linker-errors

Ld /Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Products/Debug-iphoneos/Vocab.app/Vocab normal armv7 cd "/Users/macmini2/Desktop/utkal/LAnguage_forest14/Language_Forest/Vocabulary Tutor/Vocab" setenv IPHONEOS_DEPLOYMENT_TARGET 6.0 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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Products/Debug-iphoneos -L/Users/macmini2/Desktop/utkal/LAnguage_forest14/Language_Forest/Vocabulary\ Tutor/Vocab/Airship -L/Users/macmini2/Desktop/utkal/LAnguage_forest14/Language_Forest/Vocabulary\ Tutor/Vocab -F/Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Products/Debug-iphoneos -F/Users/macmini2/Desktop/utkal/LAnguage_forest14/Language_Forest/Vocabulary\ Tutor/Vocab/../iOS\ Framework -F/Users/macmini2/Desktop/utkal/LAnguage_forest14/Language_Forest/Vocabulary\ Tutor/Vocab/../iOS\ Framework -filelist /Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Intermediates/Vocab.build/Debug-iphoneos/Vocab.build/Objects-normal/armv7/Vocab.LinkFileList -dead_strip -ObjC -lz -all_load -fobjc-link-runtime -miphoneos-version-min=6.0 -framework MapKit -lUAirship-2.1.0 -lUAirship-2.1.0 -framework Social -framework CoreData -framework CFNetwork -framework CoreLocation -framework StoreKit -framework CoreTelephony -lz -lOAuth-ios6 -framework MobileCoreServices -framework MediaPlayer -framework Security -lxml2 -framework QuartzCore -framework MessageUI -framework AVFoundation -framework AudioToolbox -framework SystemConfiguration -framework CoreText -lsqlite3 -framework UIKit -framework Foundation -framework CoreGraphics -framework WordnikUI -Xlinker -dependency_info -Xlinker /Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Intermediates/Vocab.build/Debug-iphoneos/Vocab.build/Objects-normal/armv7/Vocab_dependency_info.dat -o /Users/macmini2/Library/Developer/Xcode/DerivedData/Vocab-cieqpeybobkktaberajtbzmxptpx/Build/Products/Debug-iphoneos/Vocab.app/Vocab

Undefined symbols for architecture armv7: "_RELEASE_SAFELY", referenced from: -[VocabViewController dealloc] in VocabViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)


  • 我收到此错误,我不知道这是什么意思,我用谷歌搜索了一个
    很多,但没有任何解决方案。
  • 我将提交我的应用程序并使用libUAirship 1.1.2.a,其中
    导致UDID错误,并且Apple验证失败。
  • 因此下载了最新的libUariship 2.1.0.a,并在其实现后
    我收到此错误。请帮助我。
  • 最佳答案

    我坚信它来自xCode版本和定义的宏。因为RELEASE_SAFELY不是函数。

    #define RELEASE_SAFELY(__POINTER) { [__POINTER release]; __POINTER = nil; }
    

    source link这可以帮助您更多

    关于ios - 错误体系结构armv7的 undefined symbol : “_RELEASE_SAFELY” , referenced from:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21088821/

    相关文章:

    typescript - 克服 Meteor/Typescript/Angular 编译器丢失错误

    c++ - 如何引用静态函数作为参数传递?

    C# Windows API 代码包

    ios - 如何从 xcode 4.2 中的 nsstring 或 byte 获取 JSON 数组数据?

    ios - 使用自动布局以编程方式将 UIView 居中会使 View 从 super View 中消失

    iphone - iOS 6 和 Xcode 5.0 的图标光泽度

    iPhone - 未调用 webViewDidFinishLoad

    ios - 如何在 TAP 上编辑 tableview 单元格而不是滑动 - Swift

    iphone - objective-c int 进行双重计算

    iphone - MKMapView setRegion : odd behavior?