iOS 3.1.3 crashing when using PhoneGap with Xcode 4 (UIKIT problem)

  • 1
  • Problem
  • Updated 8 years ago
Hey,

When running a simple phonegap project with facebook-connect-plugin,
on iPhone 4 with 4.3.2 OS it works great

But when I tried to run it on iPhone 3 with 3.1.3 I have came across with a problem with the CoreMedia lib which i needed to 'weak' in the build settings.

Once I worked this one out, I came across with a whole new problem which I couldn't find a solution for:

dyld: Symbol not found: _UIAccessbilityAnnouncmentNotifcation
.... Excpeted in /SystemLibrary/Frameworks/UIKit.framework/UIKIT

Both Project and Target Deployment Target is 3.1

Any idea's?
Thanks in advance
Guy.
Photo of Guy Schlider

Guy Schlider

  • 2 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of Shazron

Shazron, Developer Level 42

  • 37 Posts
  • 2 Reply Likes
This is covered in the README FAQ. Basically you need to weak link three frameworks for iOS 3.x:
1. CoreMedia
2. AVFoundation
3. UIKit

Try that and see if that solves your problem.
Photo of Guy Schlider

Guy Schlider

  • 2 Posts
  • 0 Reply Likes
Hey,

I didn't noticed this in the readme file - sorry.

Everything works perfect now

Thank you!

Guy.
Photo of Shazron

Shazron, Developer Level 42

  • 37 Posts
  • 2 Reply Likes
Great!
Just a note for others encountering this issue, in iOS PhoneGap 1.1 (coming at the end of Sept 2011), you don't have to worry about setting this manually anymore, they are set through a linker flag explicitly in the Build Settings when you create a new project.

ref: https://github.com/phonegap/phonegap-...
Photo of Jeevan Anandaskaran

Jeevan Anandaskaran

  • 1 Post
  • 0 Reply Likes
I'm having this same issue with a simple html javascript jquery mobile app using PhoneGapBuild, not sure I can do this fix if I'm using the online build tool. I have an ipod touch with ios 3.1.3 and am using xcode 4.2 since I can't run the latest version on my mac.

The docs say the phongap builds for ios 3.0, but I tried to build with earlier phonegap-versions and still no luck. Had to use a version before 2.0 or it would not install on my ios version.