English 中文(简体)
任何想法什么是“死:没有发现:......gcc_ Personity_sj0”在编纂时?
原标题:Any idea what s "dyld: Symbol not found: ___gcc_personality_sj0" when compiling iOS app?
  • 时间:2011-08-11 18:07:32
  •  标签:
  • ios
  • gcc
  • dyld

我在装设动态图书馆时 app忙,我没有明确要求这样做。

全面坠毁:

sharedlibrary apply-load-rules all
dyld: Symbol not found: ___gcc_personality_sj0
  Referenced from: /var/mobile/Applications/44B11CD4-6109-4970-88E9-467552DB86DD/Pro.app/Pro
  Expected in: /usr/lib/libSystem.B.dylib
 in /var/mobile/Applications/44B11CD4-6109-4970-88E9-467552DB86DD/Pro.app/Pro
问题回答

Try weaklinking to libystem.B.dylib

In your project build settings under "Other Linker Flags" add the following:

-weak_library /usr/lib/libSystem.B.dylib

It should automatically be added to your Target build settings but if it isn t you should add it there as well.





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签