Search code examples
iphoneobjective-cxcodethree20

Three20 JSON problem: Can deploy to simulator but not device (extThree20JSON)


Everything builds and runs in the simulator fine ... but when I attempt to run on device I get:

"arm-apple-darwin10-gcc-4.2.1: ..../three20/Build/Products/Debug-iphoneos/libextThree20JSON+YAJL.a: No such file or directory"

I check that directory and indeed the file doesn't exist. It does exist in the "Debug-iphoneosimulator" though (which I guess explains why it works in the simulator).

So what gives and what can I do to correct this?

Thanks


Solution

  • This is fixed by adding the library via the python script from Three20. Do this in the command line:

    python src/scripts/ttmodule.py -p ~/MyApp/MyApp.xcodeproj -c Debug -c Release extThree20JSON:extThree20JSON+SBJSON

    OR

    python src/scripts/ttmodule.py -p ~/MyApp/MyApp.xcodeproj -c Debug -c Release extThree20JSON:extThree20JSON+YAJL

    depending on which library you need.