Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Xcode project empty after create-react-native-module

$
0
0

I'm wondering why Xcode shows a empty project after creating a native react-native module using create-react-native-module.

I issued the following command:

create-react-native-module test

The folder contents of ios/ are then:

Test.hTest.mTest.xcodeprojTest.xcworkspace

Now I think it's a good idea to write iOS specific code in Xcode, but when opening either Test.xcodeproj or Test.xcworkspace, it doesn't show Test.m or Test.h on the left:enter image description here

Also, when opening it using the xcworkspace file, the libTest.a is red.

Question: Why does Xcode not show these 2 files? Do they have to be linked to the target or something like that? How would I go about adding new files? From which file I am supposed to open this project in Xcode?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>