-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: error build Framework not found OneSignalCore #1447
Comments
@kingkongqn4444 I will attempt to reproduce this issue, but I did notice that you are using both |
I have a similar issue dyld[36319]: Library not loaded: @rpath/OneSignalCore.framework/OneSignalCore The app crashes on launch on a physical device and on an emulator. |
+1 The app was building successfully on an intel Macbook but on an M2 mac this issue appears when building the app. I have already added "arm64" on the "Excluded Architectures" section but with no result. Any suggestions? |
I was able to resolve it. Ensure you have the latest version of OneSignal SDK: Check the official OneSignal repository (https://github.com/OneSignal/OneSignal-iOS-SDK) and make sure you are using the latest version of the SDK. Check your project's build settings: Verify the framework is added to the "Link Binary With Libraries" build phase: Ensure the framework is embedded in your project: Clean and rebuild your project: |
Thank you @BautizarCodigo for your detailed steps to resolve the issue! Since this issue has not seen some action for some time, I'm going to close it as stale. If there are still any issues please @ mention me and we will be happy to give this some fresh eyes! |
What happened?
I facing an error when build the release simulator, this work perfectly on debug simulator and release on devices, please help me
Pod config
System:
OS: macOS 12.6
CPU: (8) arm64 Apple M1
Memory: 88.44 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.11.0 - /var/folders/_r/f61rgp5d21j19bjgt31xk4w00000gn/T/yarn--1667790071449-0.9577995649944078/node
Yarn: 1.22.19 - /var/folders/_r/f61rgp5d21j19bjgt31xk4w00000gn/T/yarn--1667790071449-0.9577995649944078/yarn
npm: 8.19.2 - /opt/homebrew/bin/npm
Watchman: 2022.10.24.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.0/14A309 - /usr/bin/xcodebuild
Languages:
Java: 11.0.17 - /usr/bin/javac
Python: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.63.4 => 0.63.4
react-native-onesignal => 4.0.6,
Steps to reproduce?
What did you expect to happen?
Can build release on simulator
React Native OneSignal SDK version
4.0.6
Which platform(s) are affected?
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: