Closed Januka closed 2 years ago
Hello @Januka, apologies that we couldn't get back to you in reasonable time. Please make sure you have run the following command in your project root folder.
npx react-native link @payhere/payhere-mobilesdk-reactnative
Running the above command should resolve issues with the SDK's dependencies not being linked correctly with CocoaPods. Please let us know if the issue persists, and we will be glad to be of further support.
We will be stating here a possible solution for future readers of this issue. If the solution fixed your issue, please provide some feedback so that we can close the issue with the accepted solution.
.xcworkspace
file.If you were not prompted asking the creation of a Bridging Header File, follow these steps:
At this point, your Xcode window should look as follows.
"\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\\"",
Your TextEdit window should now look like this:
pbxproj
file..xcworkspace
.
Returning bellow error when try to run the app.
Undefined symbols for architecture x86_64: "Swift._ArrayBuffer._copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (Swift.IndexingIterator<Swift._ArrayBuffer<A>>, Swift.Int)", referenced from: generic specialization <serialized, Swift._ArrayBuffer<Swift.Int8>> of Swift._copyCollectionToContiguousArray<A where A: Swift.Collection>(A) -> Swift.ContiguousArray<A.Element> in libAlamofire.a(NetworkReachabilityManager.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)