English 中文(简体)
汇编SOS 5号材料供模拟者使用时的链接错误——不确定符号:_objc_assign_global,_objc_assign_ivar和_objc_assign_strongCast
原标题:Linker error when compiling iOS 5 app for Simulator - Undefined symbols: _objc_assign_global, _objc_assign_ivar, and _objc_assign_strongCast

我的项目在升级为自动重计后,不再为5台模拟仪进行汇编。 它仍然为任何SOS装置进行无谓的汇编。

此外,在升级为5号SOS之后,但在升级到自动重计之前,我的项目将不法地为仪器和模拟器进行汇编。

联系人说,它可以找到以下象征:

  • _objc_assign_global
  • _objc_assign_ivar
  • _objc_assign_strongCast

我认为,首先我可能缺乏一个模拟人的具体框架,但在增加每个现有框架之后,我仍然有同样的错误。

Other Info

  • iOS deployment target is: 4.0.
  • OS is Snow Leopard OSX 10.6.8 64bit
Undefined symbols for architecture i386:
  "_objc_assign_global", referenced from:
      +[InAppPurchaseManager sharedInAppPurchaseManager] in InAppPurchaseManager.o
      +[ThemeManager sharedThemeManager] in ThemeManager.o
      +[DownloadUpdatesManager sharedDownloadUpdatesManager] in DownloadUpdatesManager.o
      +[AudioManager sharedAudioManager] in AudioManager.o
      +[IOHelper sharedIOHelper] in IOHelper.o
      -[CKBezierPath svgStringPath] in CKBezierPath.o
      +[PreferencesManager defaultLineWidth] in PreferencesManager.o
      ...
  "_objc_assign_ivar", referenced from:
      -[InAppPurchaseManager init] in InAppPurchaseManager.o
      -[InAppPurchaseManager addTransactionObserver:] in InAppPurchaseManager.o
      -[InAppPurchaseManager removePurchaseTransactionObserver:] in InAppPurchaseManager.o
      -[InAppPurchaseManager purchaseProduct:forThemeIDType:] in InAppPurchaseManager.o
      -[InAppPurchaseManager productsRequest:didReceiveResponse:] in InAppPurchaseManager.o
      -[ThemeEditVC viewDidLoad] in ThemeEditVC.o
      -[ThemeEditVC setDelegate:] in ThemeEditVC.o
      ...
  "_objc_assign_strongCast", referenced from:
      +[SFHFKeychainUtils getPasswordForUsername:andServiceName:error:] in SFHFKeychainUtils.o
      +[SFHFKeychainUtils storeUsername:andPassword:forServiceName:updateExisting:error:] in SFHFKeychainUtils.o
      +[SFHFKeychainUtils deleteItemForUsername:andServiceName:error:] in SFHFKeychainUtils.o
      __replacePlaceholdersWithValues in Utility.o
      -[LocationManager checkForNewLocation:] in LocationManager.o
      -[LocationManager getNewLocationInStringFormat] in LocationManager.o
      ___52-[LocationManager getNewLocationInStringFormat]_block_invoke_0 in LocationManager.o
      ...
ld: symbol(s) not found for architecture i386

Edit:

目标C 垃圾收集被定为“支持”而不是“要求”。 在将其定为“要求”之后,我犯了错误:

ld: /Users/teacher/drawingapp/FlurryLib/libFlurryAnalytics.a(FlurryAnalytics.o) built with incompatible Garbage Collection settings to link with previous .o files for architecture i386 Command /Developer_4_2_ios5/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1

在拆除了卢布里图书馆之后,以前的错误信息再次出现。

Edit 2:

看起来像Garbage Collection,只是为SOS X而不是为OS提供支持。 我仍然不理解,为什么允许我用垃圾收集器来汇编和操作有关该装置的对应材料,但不是模拟器。

不管怎么说,我只是将垃圾收集安排到“未支持的”,但现在,它将不再汇编和操作该装置。

我现在发现这一错误:

/Users/teacher/drawingapp/Main/Source/PurchaseThemeOptionVC.m 
1. /Users/teacher/drawingapp/Main/Source/PurchaseThemeOptionVC.m:52:1: current parser token  - 
2. /Users/teacher/drawingapp/Main/Source/PurchaseThemeOptionVC.m:39:1: LLVM IR generation of declaration  PurchaseThemeOptionVC::viewDidLoad 
3. /Users/teacher/drawingapp/Main/Source/PurchaseThemeOptionVC.m:39:21: LLVM IR generation of compound statement ( {} )
clang: error: unable to execute command: Segmentation fault
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation)
最佳回答

汇编者只有在能够收集垃圾时才能参考这些功能。 你们是否确保这些物体档案能够用垃圾收集汇编成册?

问题回答

汇编者只有在能够收集垃圾时才能参考这些功能。

Don tabe, 请注意,如果你与制作的垃圾收集的图书馆连接起来,将提及_objc_assign_global/ivar/strongCa





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签