react-native-builder-bob icon indicating copy to clipboard operation
react-native-builder-bob copied to clipboard

React core Obj-C classes missing in Swift

Open espenjanson opened this issue 3 years ago • 4 comments

Environment

Mac M1 Xcode 13.2

Description

When starting a new Swift/Java project from scratch, Xcode can't seem to find React's Objective-C classes.

image

Reproducible Demo

Set the project up according to instructions. Open Xcode and edit .swift file.

espenjanson avatar Apr 16 '22 07:04 espenjanson

Any updates?

b0iq avatar Jun 17 '22 00:06 b0iq

Okay, Finally I found the solution...

You need to write your code while you opening example/ios

b0iq avatar Jun 17 '22 18:06 b0iq

@b0iq how do you write your code with example/ios opened?

Do you know how to add a Cocoadependency to the library?

daniftodi avatar Sep 06 '22 09:09 daniftodi

@b0iq how do you write your code with example/ios opened?

Do you know how to add a Cocoadependency to the library?

You have to simply open example/ios/<project_name>.xcworkspace and then your package will be in Developer pods you can edit them directly there as it's just link of your files from root iOS directory

MateWW avatar Sep 06 '22 14:09 MateWW