1

我最近打开了我以前工作的应用程序(在我升级到适用于 iOS6 的新 Xcode 之前)并且我遇到了一些错误。我已经重新下载了消除错误的框架,但这些相同的框架现在似乎给我带来了更多麻烦。下面是错误...

Ld /Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Intermediates/iFestApp.build/Debug-iphoneos/iFestApp.build/Objects-normal/armv7/iFestApp normal armv7
    cd "/Users/JohnSlater/Desktop/iOS Apps/iFestival for V 2012"
    setenv IPHONEOS_DEPLOYMENT_TARGET 5.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/iPhoneOS6.0.sdk -L/Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Products/Debug-iphoneos "-L/Users/JohnSlater/Desktop/iOS Apps/iFestival for V 2012/iFestApp/Resources/Frameworks/Airship" -F/Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Products/Debug-iphoneos -filelist /Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Intermediates/iFestApp.build/Debug-iphoneos/iFestApp.build/Objects-normal/armv7/iFestApp.LinkFileList -dead_strip -fobjc-link-runtime -miphoneos-version-min=5.0 -framework QuartzCore -framework Security -framework AudioToolbox -framework MessageUI -framework StoreKit -framework CoreTelephony -lsqlite3 -framework AVFoundation -lz -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework CoreLocation -framework MapKit -framework UIKit -framework Foundation -framework CoreGraphics -lUAirship-1.3.3 -lUAirshipPush-1.3.3 -o /Users/JohnSlater/Library/Developer/Xcode/DerivedData/iFestApp-avmgjnvetjnjecdjprczkbgdkfas/Build/Intermediates/iFestApp.build/Debug-iphoneos/iFestApp.build/Objects-normal/armv7/iFestApp

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_TestFlight", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_FlurryAnalytics", referenced from:
      objc-class-ref in AppDelegate.o
      objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

谁能给我一些指导,因为我一直无法找到一个直接的答案。

谢谢。

4

1 回答 1

1

如果您想支持 iPhone 5 配置,您必须重新配置整个项目并使其使用 armv7s 架构运行。

如果您只是想摆脱错误,您应该删除所有 armv7s 引用,包括所有库。

这可能会有所帮助:Moving to iOS6 I get this linker error with most external packages

于 2012-09-24T18:35:04.573 回答