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

building rn project on ios fails with: No matching function for call to 'objc_msgSend' #15

Closed
macrozone opened this issue May 31, 2018 · 7 comments
Labels
help wanted Extra attention is needed

Comments

@macrozone
Copy link

i could successfully export the unity project, but building the react-native ios project fails with "No matching function for call to 'objc_msgSend'"

@f111fei f111fei added the help wanted Extra attention is needed label Jun 1, 2018
@f111fei
Copy link
Owner

f111fei commented Jun 1, 2018

What is your unity project? First step, It is recommended to use Cube instead of.

@macrozone
Copy link
Author

macrozone commented Jun 1, 2018

@f111fei i used an own simple one.

I figured out, that this only happens on the simulator. It works on a device

@f111fei f111fei closed this as completed Jun 1, 2018
@nmsdvid
Copy link

nmsdvid commented Jun 19, 2018

Had the same problem, switching Enable Strict Checking of objc_msgSend Calls to No in Build Settings fixed the problem.

@fedegl
Copy link

fedegl commented Jun 25, 2018

@f111fei If I try to run the project on the device I get the following error:

▸ Compiling RCTBundleURLProvider.m

❌  /Users/federico/code/react-native-unity-demo/node_modules/react-native/React/Base/RCTBundleURLProvider.m:17:53: use of undeclared identifier 'undefined'; did you mean 'underline'?

const NSUInteger kRCTBundleURLProviderDefaultPort = RCT_METRO_PORT;
                                                                     ^


▸ Compiling RCTLayoutAnimationGroup.m
▸ Compiling RCTNavigator.m
▸ Compiling RCTTabBar.m
** BUILD FAILED **


The following build commands failed:

	CompileC /Users/federico/code/react-native-unity-demo/ios/build/Build/Intermediates.noindex/React.build/Debug-iphoneos/React.build/Objects-normal/arm64/RCTBundleURLProvider.o Base/RCTBundleURLProvider.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)```

@edamazzio
Copy link

@nmsdvid 's solution caused 201 errors in my XCode project 🙃 Still haven't tried in a real device yet

@ham118
Copy link

ham118 commented Sep 30, 2019

Had the same problem, switching Enable Strict Checking of objc_msgSend Calls to No in Build Settings fixed the problem.

Followed your steps but unable to run project in iOS. 😕

@amit00978
Copy link

amit00978 commented Jun 24, 2020

I am facing the same problem during running the #react-native-unity-demo project No matching function for call to objc_msgSend.If anyone found the solution please help it's highly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants