ios - PhoneGap 1.0 app Submit to AppStore fails -


we have old app created phonegap version 1.0. there absolutely no chance migrate latest phonegap/cordova because of huge changes in both ios/js code required.

an attempt upload app compiled ios sdk 6.1 failed message: "apps not permitted access udid , must not use uniqueidentifier method of uidevice. please update apps , servers associate users vendor or advertising identifiers introduced in ios 6.".

phonegap 1.0 sources not available in public, it's distributed compiled framework.

does have idea how workaround issue?

crazy, working solution (hack)

well, once phonegap 1.0 provided compiled lib, can try change compiled binary itself.

the reason of apple reject calls [uidevice uniqueidentifier] method deprecated in ios 6. if app (js code) not use udid provided phonegap (actually, have no idea there way it), it's safe (!? see note bellow) change call of uniqueidentifier other method returning nsstring of uidevice class.

i've used +(nsstring *)systemversion - getter of systemversion property.

so, hex editor , open file: /users/shared/phonegap/frameworks/phonegap.framework/phonegap replace uniqueidentifier systemversion\0\0\0.

\0 - 0 code bytes, needed align length of new name 3 bytes shorter!

rebuild app, and… viola upload appstore succeeded!

note: sure, must check app functionality not broken. did mine app , works charm.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -