BILDIT-Platform / react-native-bildit-flybuy

React Native FlyBuy module. Supports Core, Pickup, Notify, and Presence Native SDK APIs.
9 stars 6 forks source link

example app - warning: Could not find or use auto-linked library #17

Closed mohanenm closed 2 years ago

mohanenm commented 2 years ago

Run into this issue every time I try and build.

Error output from Xcode build:
** BUILD FAILED **

Xcode’s output:
↳
** ld: warning: Could not find or use auto-linked library ‘swiftSwiftOnoneSupport’**
** ld: warning: Could not find or use auto-linked library ‘swiftObjectiveC’**
** ld: warning: Could not find or use auto-linked library ‘swiftCoreFoundation’**
** ld: warning: Could not find or use auto-linked library ‘swiftCompatibility50’**
** ld: warning: Could not find or use auto-linked library ‘swiftDarwin’**
** ld: warning: Could not find or use auto-linked library ‘swiftUIKit’**
** ld: warning: Could not find or use auto-linked library ‘swiftQuartzCore’**
** ld: warning: Could not find or use auto-linked library ‘swiftCore’**
** ld: warning: Could not find or use auto-linked library ‘swiftCoreGraphics’**
** ld: warning: Could not find or use auto-linked library ‘swiftCompatibility51’**
** ld: warning: Could not find or use auto-linked library ‘swiftFoundation’**
** ld: warning: Could not find or use auto-linked library ‘swiftCoreImage’**
** ld: warning: Could not find or use auto-linked library ‘swiftCompatibilityDynamicReplacements’**
** ld: warning: Could not find or use auto-linked library ‘swiftMetal’**
** ld: warning: Could not find or use auto-linked library ‘swiftDispatch’**
** ld: warning: Could not find or use auto-linked library ‘swiftCoreMedia’**
** ld: warning: Could not find or use auto-linked library ‘swiftCoreAudio’**
mohanenm commented 2 years ago

Solution:

Remove bridge header in the targets build settings:

Screen Shot 2021-11-16 at 12 44 16 PM

In the project root, create an empty swift file:

Screen Shot 2021-11-16 at 12 41 25 PM

Select FlybuyExample as the target:

Screen Shot 2021-11-16 at 12 43 01 PM

Select "create bridging header"

Screen Shot 2021-11-16 at 12 45 09 PM

clean build folder cmd shift k

Build