aranja/rakning-c19-app

iOS app launch failure

Closed this issue · 3 comments

pgte commented

I followed the install instructions to the best of my knowledge and, when running the yarn iOS command, I get the following error:

error: /Users/pedroteixeira/projects/rakning-c19-app/ios/Pods/Target Support Files/Pods-Rakning/Pods-Rakning.debug.xcconfig

Here is the full output:

→ yarn ios
yarn run v1.21.1
$ react-native run-ios
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:
  - @react-native-community/async-storage (to unlink run: "react-native unlink @react-native-community/async-storage")
  - react-native-splash-screen (to unlink run: "react-native unlink react-native-splash-screen")
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.
Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
info Found Xcode workspace "Rakning.xcworkspace"
info Launching iPhone 11 (iOS 13.4)
info Building (using "xcodebuild -workspace Rakning.xcworkspace -configuration Debug -scheme Rakning -destination id=6B7EA942-B5EF-4331-B2FE-3C8E962518DB")
...........
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening Rakning.xcworkspace. Run CLI with --verbose flag for more details.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace Rakning.xcworkspace -configuration Debug -scheme Rakning -destination id=6B7EA942-B5EF-4331-B2FE-3C8E962518DB

note: Using new build system
note: Planning build
note: Using build description from disk
error: /Users/pedroteixeira/projects/rakning-c19-app/ios/Pods/Target Support Files/Pods-Rakning/Pods-Rakning.debug.xcconfig: unable to open file (in target "Rakning" in project "Rakning") (in target 'Rakning' from project 'Rakning')
error: /Users/pedroteixeira/projects/rakning-c19-app/ios/Pods/Target Support Files/Pods-Rakning/Pods-Rakning.debug.xcconfig: unable to open file (in target "Rakning" in project "Rakning") (in target 'Rakning' from project 'Rakning')
error: /Users/pedroteixeira/projects/rakning-c19-app/ios/Pods/Target Support Files/Pods-Rakning/Pods-Rakning.debug.xcconfig: unable to open file (in target "Rakning" in project "Rakning") (in target 'Rakning' from project 'Rakning')
error: /Users/pedroteixeira/projects/rakning-c19-app/ios/Pods/Target Support Files/Pods-Rakning/Pods-Rakning.debug.xcconfig: unable to open file (in target "Rakning" in project "Rakning") (in target 'Rakning' from project 'Rakning')


** BUILD FAILED **


error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Strange. Can you try opening ios/Rakning.xcworkspace in XCode and running the project in a simulator?

You might see more detailed errors there?

Also, if this error is accurate it might indicate an error installing pods. Can you run yarn prepare and check if there are any warnings or errors there?

pgte commented

@eirikurn After doing yarn prepare(which yielded no errors), build started working.
Thanks for the help!

This happened to me also and lost a few hours trying to figure it out. Maybe we could consider adding it to the README?