Shazron
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
-Dx
For a solution based off the $(PHONEGAPLIB) location always - just tested it in my sample project. This works:
In your build settings (I put it in my Target settings here) --
1) Find "Other Linker Flags", select it (delete current value)
2) While (1) is selected, click on the Gear icon on the bottom left, select "Add Build Setting Condition"
3) Select "Any iOS Device" from the first dropdown
4) Do (2) again, but for (3), Select "Any iOS Simulator" from the dropdown instead
For (3), enter this value: -force_load $(PHONEGAPLIB)/build/$(CONFIGURATION)-iphoneos/libPhoneGapLib.a -Obj-C
For (4), enter this value: -force_load $(PHONEGAPLIB)/build/$(CONFIGURATION)-iphonesimulator/libPhoneGapLib.a -Obj-C
See attached screenshot.