xcode - iOS different bundle ids map to the same app -


i'm trying follow convention described in this answer manage both app store , enterprise version of same app seeing interesting behavior.

as described in linked answer i've created new scheme, defined new 'enterprise' build configuration , set enterprise scheme use separate , new bundle id. both schemes point same target relies on new build config toggle behavior. able generate enterprise build , distribute over-the-air, however, when install both versions of same app on same simulator or phone the enterprise version runs app store version of app. changes make enterprise specific not reflected. when close app - ios7 animation home screen animates app store icon - not enterprise one.

obviously want able maintain these separate versions run independently. feel must fundamentally misunderstanding targets , schemes kind of behavior. appreciated.

pretty interesting bug.

what happening was:

  • we using facebook login authenticate our own services on enterprise version.
  • the fb sdk take on , kick out web/view or fb app, depending on it's own logic. critically - using same facebook "app" configured on developer site.
  • when fb returned call url scheme denoted fb{app_id}
  • ios decided (consistently) open app first-installed respond url scheme. in cases app-store version not enterprise version.

the solution - maybe @ point - use 2 different facebook apps ios can route returning oauth response proper app. in keeping answer working off best done by...

  • creating new user defined build setting entitled facebook_id
  • use production app id debug , release, while using new id enterprise.
  • in info.plist, change value of facebookappid ${facebook_id}
  • in url types, change facebook scheme fb${facebook_id}
  • this should route facebook login.

keep in mind general potential bug deep links - not facebook login.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -