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

After upgrading to react-native 0.59 iOS build fails #23886

Closed
dan-lee opened this issue Mar 13, 2019 · 69 comments
Closed

After upgrading to react-native 0.59 iOS build fails #23886

dan-lee opened this issue Mar 13, 2019 · 69 comments
Labels
Bug Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@dan-lee
Copy link

dan-lee commented Mar 13, 2019

🐛 Bug Report

After updating to react-native 0.59 and trying to build the app for iOS I get the following error:

Build input file cannot be found: '/app/node_modules/react-native/ReactCommon/yoga/yoga/YGFloatOptional.cpp'

What's strange to me is, that I can't find this file here either in the current master: react-native/tree/master/ReactCommon/yoga/yoga (only YGFloatOptional.h)

To Reproduce

We upgraded a mid sized project from 0.57.7 → 0.59.

Expected Behavior

Build should run through just fine like it did before.

Environment

  React Native Environment Info:
    System:
      OS: macOS 10.14.3
      CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
      Memory: 2.95 GB / 32.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.15.1 - /var/folders/1r/ymkpxdlj21lb638kzp4jxvwm0000gn/T/yarn--1552463658468-0.20119758467048565/node
      Yarn: 1.13.0 - /var/folders/1r/ymkpxdlj21lb638kzp4jxvwm0000gn/T/yarn--1552463658468-0.20119758467048565/yarn
      npm: 6.4.1 - /usr/local/Cellar/node@10/10.15.1/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 23, 24, 25, 27, 28
        Build Tools: 23.0.1, 23.0.3, 24.0.1, 25.0.0, 27.0.3, 28.0.3
        System Images: android-24 | ARM 64 v8a, android-24 | ARM EABI v7a, android-24 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom_64
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5264788
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3
      react-native: 0.59.0 => 0.59.0
@jsamr
Copy link

jsamr commented Mar 13, 2019

I have just reproduced this issue with XCode: 10.1 and RN 0.59.0.

EDIT 1: I could reproduce with XCode UI build tool ; but it's working fine with react-native run-ios (make sure to have the latest 2.x cli).
EDIT 2: I managed to make it work with XCode 10.1 by enabling legacy build. Related to #19573

@darekg11
Copy link

darekg11 commented Mar 13, 2019

Hmm, I have just upgraded from 0.58.4 to 0.59, cleaned build directories in XCode and I was able to run both debug and archive the app. I am using XCode 10.1.
My upgrade strategy:

  1. Bump dependencies according to most recent stable version.
  2. Walk through each compare in https://github.com/react-native-community/rn-diff-purge and apply it manually.

Wondering if everything might work for me because I had working 0.58.4 and just applied new stuff on top of it?

EDIT: I have also ran npm ci in order to remove my node_modules (just to make sure) and I was still able to build the app from XCode 🤔

EDIT2: And I don't have YGFloatOptional.cpp:
Screen Shot 2019-03-13 at 12 55 51

@philipaarseth
Copy link

I'm getting the same issue upgrading from 0.57.8 -> 0.59.1.
Looking at a fresh 0.59.1 init there is no YGFloatOptional.cpp file.

@jpudysz
Copy link

jpudysz commented Mar 14, 2019

Add these lines to your Podfile:

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

and run

pod install

@jsamr
Copy link

jsamr commented Mar 14, 2019

@jpudysz Yeah that worked after migrating to cocoapod and opening the XCode project with the .xcworkspace file.
I had to react-native unlink and react-native link bridged libraries so that they use the Podfile instead.

Should legacy (no-cocoapod) linking be deprecated ?

@lukefanning
Copy link

lukefanning commented Mar 14, 2019

@jpudysz Worked for me too. Surely this can't be the proper solution though right? This seriously bloats the project. Pods/boost-for-react-native is 160.8MB.

Edit: Ok seriously odd, I removed those 3 pods, ran Clean in Xcode and tried to build. This time I didn't get an error while compiling Yoga.

@RaphArbuz
Copy link

Thanks @jpudysz . Following your solution, I then get the following error:
'folly/Portability.h' file not found in JSBundleType.h

Does anyone know what's going on?

Many thanks.

@philipaarseth
Copy link

After trying what feels like pretty much everything, RN standard upgrade, git upgrade tool, applying diff patch I ended up recreating a completely new project and doing the extremely tedious work of rebuilding the code base. They say it'll be better from 0.59 on.. hopefully they're right about that

@Ericky14
Copy link

Ericky14 commented Mar 14, 2019

I just upgraded from 0.59.0 to 0.59.1 and it worked for me
resolved the Yoga issue

@RaphArbuz
Copy link

I upgraded too but with no luck so far.

@matthias-pichler
Copy link

I had the exact same issue. The good old rm -rf node_modules && npm i and cleaning the build folders did it for me

@tungduonghgg123
Copy link

tungduonghgg123 commented Mar 15, 2019

After using npm audit fix, my 'react-native' are upgraded automatically to version 0.59 and I can't not build my project.
Solution: Downgrade version to lower one.
npm install react-native@<version>
example : npm install react-native@0.57.8

@thiagoferolla
Copy link

I've tried updating from 0.58.4 manually (following rn-diff-purge changes) but I'm also facing this problem with RN 0.59.0 or 0.59.1

@shunsuke1watanabe
Copy link

shunsuke1watanabe commented Mar 15, 2019

Yeah we had YGFloatOptional.cpp until 0.58 https://github.com/facebook/react-native/blob/0.58-stable/ReactCommon/yoga/yoga/YGFloatOptional.cpp

What the heck is going on here?

Edit
@jpudysz 's solution leads me to another file not found error 'folly/Portability.h' file not found

@aaska
Copy link

aaska commented Mar 15, 2019

Got the same issue with 'folly/Portability.h' after upgrading from 0.58.4 to 0.59.0 and 0.59.1

What is weird, is that XCode states after compile that Portability.h is not found, but in the editor, it gets all types define in the header...

image

File failing to compile is RCTJavasScriptLoader.mm in the React library.


CompileC /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTJavaScriptLoader.o /Users/xxx/Projects/xxx/node_modules/react-native/React/Base/RCTJavaScriptLoader.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target: React)
    cd /Users/xxx/Projects/xxx/ios/Pods
    export LANG=en_US.US-ASCII
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c++14 -stdlib=libc++ -fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/Users/xxx/Projects/xxx/ios/build/xxx/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/xxx/Projects/xxx/ios/build/xxx/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations -Wno-c++11-extensions -DPOD_CONFIGURATION_DEBUG=1 -DDEBUG=1 -DCOCOAPODS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/xxx/Projects/xxx/ios/build/xxx/Index/DataStore -iquote /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/React-generated-files.hmap -I/Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/React-own-target-headers.hmap -I/Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/React-all-non-framework-target-headers.hmap -ivfsoverlay /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/all-product-headers.yaml -iquote /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/React-project-headers.hmap -I/Users/xxx/Projects/xxx/ios/build/xxx/Build/Products/Debug-iphonesimulator/React/include -I/Users/xxx/Projects/xxx/ios/Pods/Headers/Private -I/Users/xxx/Projects/xxx/ios/Pods/Headers/Private/React -I/Users/xxx/Projects/xxx/ios/Pods/Headers/Public -I/Users/xxx/Projects/xxx/ios/Pods/Headers/Public/React -I/Users/xxx/Projects/xxx/ios/Pods/Headers/Public/yoga -I/Users/xxx/Projects/xxx/node_modules/react-native/ReactCommon -I/Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/DerivedSources/x86_64 -I/Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/DerivedSources -F/Users/xxx/Projects/xxx/ios/build/xxx/Build/Products/Debug-iphonesimulator/React -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -include /Users/xxx/Projects/xxx/ios/Pods/Target\ Support\ Files/React/React-prefix.pch -MMD -MT dependencies -MF /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTJavaScriptLoader.d --serialize-diagnostics /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTJavaScriptLoader.dia -c /Users/xxx/Projects/xxx/node_modules/react-native/React/Base/RCTJavaScriptLoader.mm -o /Users/xxx/Projects/xxx/ios/build/xxx/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTJavaScriptLoader.o






In file included from /Users/xxx/Projects/xxx/node_modules/react-native/React/Base/RCTJavaScriptLoader.mm:12:
/Users/xxx/Projects/xxx/node_modules/react-native/ReactCommon/cxxreact/JSBundleType.h:

info fatal error:

'folly/Portability.h' file not found

 #include <folly/Portability.h>
          ^~~~~~~~~~~~~~~~~~~~~
 1 error generated.

@codler
Copy link
Contributor

codler commented Mar 16, 2019

I got the same issue..., Every time there is some issue with upgrades in react native so tired..

@jvandenaardweg
Copy link

jvandenaardweg commented Mar 17, 2019

The file seems to be deleted from the yoga project since 13 Dec 2018 and "inlined" into yoga/YGFloatOptional.h: facebook/yoga@96d93f2

My guess is the reference to ReactCommon/yoga/yoga/YGFloatOptional.cpp is not needed anymore.

Removing the cache and rebuilding the project didn't work for me right away.

So I tried upgrading to React Native 0.59.1 then rebuilding the project. Also didn't work.

However, THEN cleaning my node_modules, cache and build folders and rebuilding the project, did work, using:

rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && npm cache clean --force && npm cache verify && rm -rf ios/build && rm -rf node_modules/ && npm i

So, it seems cache related.

Upgrading to React Native 0.59.1 is maybe not needed, I think a part of the script did the trick for me.

Hope this helps others!

@shunsuke1watanabe
Copy link

I gave up, I deleted all links to node_modules from Pods file then delete node_modules and build directory and re-installed anything then finally built successfully again.

This is so exhausting.

@rob-not-bob
Copy link

@jvandenaardweg I think you're right that it's a caching issue.

For me what worked was deleting my Xcode's derived data folder and restarting Xcode.
rm -rf ~/Library/Developer/Xcode/DerivedData

Once I restarted, I attempted a build and it failed and prompted me to close and reopen my xcode workspace. Once I did that, I tried to build again and it worked.

@orta
Copy link
Contributor

orta commented Mar 19, 2019

Alright folks, I think this issue is generally about build cache issues from upgrading (from reading the posts ) - so if you have issues, I think it can generally be fixed by:

  • Cleaning Derived data in Xcode
  • rm -rf node_modules; rm -rf Pods then re-install
  • Using react-native upgrade x.y.z

This is pretty much the same for every version, I bet. I would maybe look into making an issue on the react-native-cli about improving this and maybe running some of the commands itself.

@rickhanlonii
Copy link
Member

Does anyone have a specific reproduction step for this?

@johnryan
Copy link

I was also seeing the #include <folly/Portability.h> error. The issue in my case were missing subspecs in the podfile.

It builds fine for me with:

  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge', # Include this for RN >= 0.47
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket', # needed for debugging
    'RCTImage',
    'RCTWebSocket', # Needed for debugging
    'RCTAnimation', # Needed for FlatList and animations running on native UI thread
    # Add any other subspecs you want to use in your project
  ]

  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  # Third party deps podspec link
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

flsilva added a commit to reflex-ui/reflex-ui that referenced this issue Mar 21, 2019
flsilva added a commit to reflex-ui/reflex-ui that referenced this issue Mar 21, 2019
@cassmtnr
Copy link

cassmtnr commented Mar 22, 2019

"Between react-native 0.57.8 and 0.58.5 there is one big change that was added in the Xcode project is that you have to add JavaScriptCore.Framework to the Linked FrameWorks and Libraries" - from here

PLUS

@jvandenaardweg answer:

rm -rf $TMPDIR/metro-* && rm -rf $TMPDIR/haste-* && watchman watch-del-all && npm cache clean --force && npm cache verify && rm -rf ios/build && rm -rf node_modules/ && npm i

Did the work for me.

It's really frustrating as other have said, needing to guess what its breaking a code that was working before.

Also on Android I had to upgrade Build Gradle version to work again.

@kelset
Copy link
Contributor

kelset commented Mar 22, 2019

needing to guess

We know that upgrading has been a long lasting pain for the community so starting v0.59 we have introduced a new flow via the new CLI.

That said we have been writing the breaking changes in the changelog and in the releases tab so there is no real guessing needed.

Anyway, closing since this is clearly related to upgrading - also, in general you can use rn-diff-repo to check for all the necessary steps when upgrading.

@tsdmrfth
Copy link

tsdmrfth commented Jul 4, 2019

Finally I successfully built iOS project and run it on simulator without any errors after hard working on upgrade progress. First I applied diffs with the help of rn-diff-purge then I applied @Hless' solution at the end I faced with duplicate symbols error and by following steps on this solution I fixed them also now project is working correctly.

@Sangrene
Copy link

Sangrene commented Jul 4, 2019

Resolved with the following :

rm -rf node_modules
rm -rf ios/Pods
rm ios/Podfile.lock 
rm -rf ~Library/Developer/Xcode/DerivedData

Then I reinstalled my dependencies (npm & pod) and it worked :)

@vforvasile
Copy link

rm -rf ~Library/Developer/XCode/DerivedData

the right line will be: rm -rf ~/Library/Developer/Xcode/DerivedData

@jenskuhrjorgensen
Copy link

jenskuhrjorgensen commented Jul 9, 2019

Every time I encounter a hair-pulling issue with RN giving me some nonsense error message, I go on a desperate github hunt for solutions. Most of the time the solution is delete cache, delete derived data, reopen Xcode, clear build folders etc. Over the years I've put together this bash script that I've added as an npm script in my package.json. Now my first goto solution for most issues is npm run clear.

// package.json
{
  "scripts": {
    "clear": ". scripts/Clear.sh",
  }
}
// scripts/Clear.sh
#!/bin/bash

echo "rm -rf ios/build..."
rm -rf ios/build

echo "rm -rf android/app/build..."
rm -rf android/app/build

echo "Removed all Xcode derived data..."
rm -rf ~/Library/Developer/Xcode/DerivedData

echo "rm -rf lib... (for Flow)"
rm -rf lib

echo "watchman watch-del-all..."
watchman watch-del-all

echo "rm -rf node_modules..."
rm -rf node_modules

echo "npm install..."
npm install

echo "rm -rf $TMPDIR/react-*..."
rm -rf $TMPDIR/react-*

echo "rm -rf $TMPDIR/haste-map-react-native-packager-*..."
rm -rf $TMPDIR/haste-map-react-native-packager-*

PS. And it solved this problem for me too :D

@hasgar-aot
Copy link

hasgar-aot commented Jul 15, 2019

just pod install did work for me

@narendraksp
Copy link

please. downgraded Xcode 10.1

@coderdave
Copy link

Another react-native link helped me. :(

@bigo104

This comment has been minimized.

@BenWildeman
Copy link

BenWildeman commented Aug 1, 2019

They say it'll be better from 0.59 on.. hopefully they're right about that

@philipaarseth I hope you ate your words when 0.60 came out 😆

@marcelkalveram
Copy link

I have seen this in other threads before, but running the following solved the issue for me:

cd node_modules/react-native/scripts
./ios-install-third-party.sh

I thought this had been fixed in 0.59 or before and I remember seeing it running automatically in some builds, but looks like there are still cases where it's missing.

Definitely worth including in the troubleshooting section of your project, since this is not the first time I see this happening.

@amitcse6
Copy link

amitcse6 commented Aug 5, 2019

Run this command: $ conda deactivate

@seandeng
Copy link

seandeng commented Aug 20, 2019

@jpudysz thanks, it works for me. but why rn yoga build error have relationshop with folly/glog/doubleConversion ?

my error log is :
The following commands produced analyzer issues:
Analyze /Users/superqa/jenkins/workspace/xxxxx-xxxx-iOS-new/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp normal arm64
Analyze Base/RCTModuleMethod.mm normal arm64
(2 commands with analyzer issues)

@MewX
Copy link

MewX commented Aug 25, 2019

Android works really perfectly, just iOS... :-(

The only promising work around might be downgrading RN version unfortunately

It gets fairly difficult when having lots of 3rd party dependencies.

@marcmoo
Copy link

marcmoo commented Sep 24, 2019

in my case, Xcode just did an automatic update and produced such problem.
what i did to solve the problem was:
cd ios
rm -fr Pods
rm Podfile.lock
pod install

reinstall the Pods and Podfile solved my problem

@manchi17
Copy link

manchi17 commented Sep 26, 2019

Delete derived data
cd ios
remove Pods and Podfile.lock
pod install

@partriv
Copy link

partriv commented Sep 28, 2019

I've done all of the above steps, gotten the build working, and now I get this error. FWIW I am upgrading from Xcode 10.1 -> 11.1 AND i am upgrading react native from 0.57.8 -> 0.59.9

dyld: Library not loaded: @rpath/XCTest.framework/XCTest
  Referenced from: /Users/par/Library/Developer/CoreSimulator/Devices/2B68242E-D2AF-49A4-9AEA-C320820D8D2F/data/Containers/Bundle/Application/E665681B-C213-42C0-9A51-746B4CA17599/Kismet.app/Kismet
  Reason: image not found

edit: I removed RCTTest from the podfile and it was good after that.

@partriv
Copy link

partriv commented Sep 28, 2019

I was also seeing the #include <folly/Portability.h> error. The issue in my case were missing subspecs in the podfile.

It builds fine for me with:

  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge', # Include this for RN >= 0.47
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket', # needed for debugging
    'RCTImage',
    'RCTWebSocket', # Needed for debugging
    'RCTAnimation', # Needed for FlatList and animations running on native UI thread
    # Add any other subspecs you want to use in your project
  ]

  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  # Third party deps podspec link
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

I had an issue getting glog to install, ended up having to issue this command sudo xcode-select --switch /Applications/Xcode.app/ pretty sure because I was running Xcode from a different directory, then moved it into my /Applications directory, and the tooling was all messed up.

@jduffy7
Copy link

jduffy7 commented Sep 29, 2019

@jenskuhrjorgensen your rm command is removing the whole $TMPDIR because of a space you have in there.

@jenskuhrjorgensen
Copy link

jenskuhrjorgensen commented Sep 30, 2019

@jduffy7 That's probably a bit overkill 😄 Thx, it's been corrected!

@thiago-slb
Copy link

@jenskuhrjorgensen Thank you!!!!!

@jackvial
Copy link

jackvial commented Oct 5, 2019

Running pod update worked for me.

@anastely
Copy link

Any update .. ?

@khanguslee
Copy link

khanguslee commented Nov 8, 2019

Above solutions did not work, the following helped my project to build again.

cd ios
pod repo update
pod update

After running these commands, I was able to build on xcode but not using react-native run-ios. I then ran these commands (thanks #23886 (comment)):

rm -rf ios/build
rm -rf ~/Library/Developer/Xcode/DerivedData
watchman watch-del-all
rm -rf node_modules
npm install

which helped me build using react-native run-ios again.

@ngankt2
Copy link

ngankt2 commented Dec 31, 2019

@anastely
Copy link

anastely commented Feb 9, 2020

@khanguslee I do it but sadly it's won't build

and got this error

** BUILD FAILED **

The following build commands failed:
PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /../ios/build/music/Build/Intermediates.noindex/music.build/Debug-iphonesimulator/music.build/Script-C5D676D55145145333E00AC9.sh
(1 failure)

Showing All Messages
👎 The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

@khanguslee
Copy link

The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

A quick google search with your error message gives me a solution here.

@facebook facebook locked as resolved and limited conversation to collaborators Mar 22, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests