0

I have a home-rolled static library to which I link my iPhone app. Works great in Debug mode for Simulator, armv7 (iPhone 4), and even in my unit test app in OS X (GHUnit). However, when I try to run debug my app on my iPhone 3G with iOS 3.0, no dice. The app dies in runtime when it tries to access my library classes.

Both the app & library have

Architectures:       Standard (armv6 armv7)  
Valid Architectures: armv6 armv7 i386 

I'm linking with "-ObjC -all_load", and I've seen some indications that -all_load can cause problems with fat binaries. Yet the armv7 version is working fine. Anybody know what's going on here? Is there a magic build incantation I'm missing?

Community
  • 1
  • 1
Clay Bridges
  • 11,602
  • 10
  • 68
  • 118

1 Answers1

1

This is quite similar to Static library dependency compiles in simulator on Xcode 3.2.3, fails on device. The halfway answer is that -all_load is causing the problem when targeting more than one architecture. The jury is still out on the definitive solution.

Community
  • 1
  • 1
Elise van Looij
  • 4,162
  • 3
  • 29
  • 52