Likely causes and solutions for common problems.
Xcode 10 builds projects differently than earlier versions and is not compatible with the React Native build system.
You recently downloaded or updated XCode.
- Open
File > Project Settings... > Per-User Project Settings
- Choose
Legacy Build System
- Remove
node_modules/react-native/third-party
andnode_modules/react-native/third-party-podspecs
libRNReaderSDK.a is not added to your project's Build Phases > Link Binary With Libraries
.
You failed to run react-native link react-native-square-reader-sdk
or you are using CocoaPods to link libraries.
- In Xcode, click your project and go to
Build Phases > Link Binary With Libraries
- In project navigator, expand
[project root] > Libraries > RNReaderSDK.xcodeproj > Products
and draglibRNReaderSDK.a
intoLink Binary With Libraries