Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Build failed when developing offline #602

Closed
2 of 5 tasks
euharrison opened this issue Jun 11, 2019 · 2 comments
Closed
2 of 5 tasks

[iOS] Build failed when developing offline #602

euharrison opened this issue Jun 11, 2019 · 2 comments

Comments

@euharrison
Copy link

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

Output of node -v && npm -v && npm ls --prod --depth=0

v12.2.0
6.9.0
[email protected] /Users/harrison/Projects/mude-fit-native
├── @react-native-community/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Config:

if (!__DEV__) {
  Sentry.config(
    '🔒'
  ).install();
}

I have following issue:

When my computer is offline, I can't build the project to work with iOS Simulator.

Here is the console return

info error: 

info API request failed

info   caused by: [6] 
Couldn't resolve host name


info Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.

info 

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 MudeFit.xcworkspace

** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution Upload\ Debug\ Symbols\ to\ Sentry /Users/harrison/Projects/mude-fit-native/ios/build/MudeFit/Build/Intermediates.noindex/MudeFit.build/Debug-iphonesimulator/MudeFit.build/Script-8C70334A3E7E4D2D950B0495.sh
(1 failure)

Here is the Script-8C70334A3E7E4D2D950B0495.sh file

#!/bin/sh
export SENTRY_PROPERTIES=sentry.properties
../node_modules/@sentry/cli/bin/sentry-cli upload-dsym

It sounds that can't upload dsym file but it's actually crashing the build, instead of give up.

Steps to reproduce:

  • Disable the wifi/internet from your computer
  • Run a project with react-native run-ios

Actual result:

  • It's result a BUILD FAILED

Expected result:

  • Build working normally to enable development during offline situations. Skip any upload step if it's not working. If it's strict necessary, just crash when it's in release mode.
@ashavyrin
Copy link

ashavyrin commented Jun 24, 2019

Same issue. I tested my app on phone and it loads up fine when connection is offline, so seems this only affects compiling to simulator.

@marandaneto
Copy link
Contributor

Closing the issue as a part of large repository cleanup, due to it being inactive and/or outdated.
Please do not hesitate to ping me if it is still relevant, and I will happily reopen and work on it.
Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants