React-native-reanimated: V2 installation failure - Build input file cannot be found: '...AppDelegate.m'

Created on 30 May 2020  路  8Comments  路  Source: software-mansion/react-native-reanimated

Description

I believe I'm following the installation instructions correctly, however I can't seem to get the project to run. Clearly this is due to changing the extension, but I don't know enough about native development to pin down where the issue lies.

Steps

I follow the installation instructions as outlined, then running yarn react-native run-ios gives the following error: error: Build input file cannot be found: '.../AppDelegate.m'

Package versions

  • React Native: 0.62.2
  • React Native Reanimated: ^2.0.0-alpha.1
  • Xcode: 10.3
鉂換uestion 馃彔 Reanimated2

Most helpful comment

Oh, I faced it too.

In order to fix this, open the project in XCode, then navigate to Build Phases, in Compile Sources remove the AppDelegate.m file and add AppDelegate.mm instead.

Perhaps, this should be mentioned in docs, not sure if there is easier way to fix this thing.

All 8 comments

Hi @nextriot,

please create a repository with your project and link it here.

Oh, I faced it too.

In order to fix this, open the project in XCode, then navigate to Build Phases, in Compile Sources remove the AppDelegate.m file and add AppDelegate.mm instead.

Perhaps, this should be mentioned in docs, not sure if there is easier way to fix this thing.

I also had to change sourcecode.c.objc -> sourcecode.cpp.objc as noted in the diff. I ran into an issue where xcode compilation couldn't pick up the standard cpp files (memory.h in my case)

Oh, I faced it too.

In order to fix this, open the project in XCode, then navigate to Build Phases, in Compile Sources remove the AppDelegate.m file and add AppDelegate.mm instead.

Perhaps, this should be mentioned in docs, not sure if there is easier way to fix this thing.

This did it for me! Thanks a bunch @terrysahaidak 馃憤

Let's keep this open until we have this in docs @jakub-gonet

Just wanted to point out that the note added to the docs doesn't address the fix in my case, which was @terrysahaidak's reccomendation

In order to fix this, open the project in XCode, then navigate to Build Phases, in Compile Sources remove the AppDelegate.m file and add AppDelegate.mm instead.

Did you do the renaming within the XCode? How did you do it exactly?

My apologies, I misunderstood the note. I had indeed made the change in my IDE 馃憤 ignore me :)

Was this page helpful?
0 / 5 - 0 ratings