Showing posts with label Apple. Show all posts
Showing posts with label Apple. Show all posts

Thursday, 27 October 2016

Apple rejected app whenever we force user to update an iOS application

I have developed an iPhone application, in order to fix some critical bugs on the very next patch release.
I have done this feature by getting version from web service and comparing with current bundle version and if they do not match and isMandatoryVersion from our API, it will prompt user with OK button only.

#define kAppStoreURI @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id="
[UIApplication
sharedApplication openURL:[NSURL URLWithString:kAppStoreURI]]

 
Apple have complained about this and said:
Your app includes an update button or alerts the user to update app. To avoid user confusion, app version updates must utilize the iOS build-in update mechanism. Please remove the update feature from your app.

NOTE:
We MUST have NOT had set any (i.e isMandatoryVersion) flag which takes care at API side (atleast for demo user which apple review board is using), until patch release is actually available on App Store. 

Important Note on App Store Submissions "The App Store reviewer will not see the alert."
Thereafter I made some changes instead of re-appeal to apple reviewer. Add skip option on alert.

Now Apple has no more objection on above and has been approved and the app status has changed to Ready for Sale. 

Tuesday, 23 February 2016

Dynamic library ".dylib" not found in Xcode7 | showing text based stub library ".tbd" in iOS9

I found some kind of way around (2 approaches)

1) Go to Target > Build Phases > Link Library with Libraries > + > Click on Add Other
2) "CMD" + SHIFT + G > type (/user/lib)
3) Now you can find ".dylib" select and add into your project.



Another approach:
You don't need to add library instead of you can add by changing the following option:

1) Go to Target > Build Settings > Other Linker Flags > Double click on section > + > -l{your library name}
For example: libiconv2.dylib = -liiconv2
                      libbz2.dylib = -libz2

NOTE: ".tbd" files are new "text-based stub libraries" that provide a much more compact version of stub libraries in SDK and it really helps to reduce its download size. Apple did a lot to strip the size of apps since Xcode7 and iOS9.

Developer Reference: