ios - React Native: Bundle Identifier does not exist -


i have project in react native has 2 different build schemes , uses cocoapods. compile run:

react-native run-ios --scheme="rnproject-(scheme_name)" 

the resulting apps example:

./build/build/products/debug/iphonesimulator/rnproject-customer1.app ./build/build/products/debug/iphonesimulator/rnproject-customer2.app 
  • using command builds 1 of build schemes, not other
  • xcode builds project both build schemes
  • furthermore, build/build/products/debug-iphonesimulator/rnproject-customer1.app/info.plist exists in path , file contains valid cfbundleidentifier (it matches general > identity > bundle identifier each of 2 build schemes)
  • project settings seem correct both schemes (after checking ios/rnproject.xcodeproj/project.pbxproj)
  • schema-specific settings located in ios/pods/target support files/pods-rnproject-customer1 , ios/pods/target support files/pods-rnproject-customer2

i tried different ways solve it:

  • running sudo react-native
  • restarting rn packager
  • manually editing info.plist
  • changing build locations

console:

** build succeeded **  installing build/build/products/debug-iphonesimulator/rnproject.app error encountered processing command (domain=nsposixerrordomain, code=2): failed install requested application application bundle not found @ provided path. provide valid path desired application bundle. print: entry, ":cfbundleidentifier", not exist child_process.js:509     throw err;     ^  error: command failed: /usr/libexec/plistbuddy -c print:cfbundleidentifier build/build/products/debug-iphonesimulator/rnproject.app/info.plist print: entry, ":cfbundleidentifier", not exist      @ checkexecsyncerror (child_process.js:486:13)     @ object.execfilesync (child_process.js:506:13)     @ childprocess.xcodebuildprocess.on.code (node_modules/react-native/local-cli/runios/runios.js:109:36)     @ emittwo (events.js:106:13)     @ childprocess.emit (events.js:191:7)     @ maybeclose (internal/child_process.js:852:16)     @ process.childprocess._handle.onexit (internal/child_process.js:215:5) 

the problem how react native names labels executable files.

my xcode project created 2 executable files different names based on xcode project settings.

react native on other hand forms executable filename .xcworkspace filename in script (./node_modules/react-native/local-cli/runios/runios.js:57):

const inferredschemename = path.basename(xcodeproject.name, path.extname(xcodeproject.name)); 

the 2 approaches different , lead 2 different executable file names (e.g. xcode build/build/products/debug-iphonesimulator/rnproject-customer1.app vs react native build/build/products/debug-iphonesimulator/rnproject.app).

i had set custom value inferredschemenameto match filename created xcode.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -