OneSignal-Flutter-SDK
OneSignal-Flutter-SDK copied to clipboard
[Bug]: OneSignalInAppMessages' (no such file, not in dyld cache) after xcode update
What happened?
After last xcode update I'm getting errors to run my app, with vscode run (or cli Flutter run command) the app never stops building process, but by running it directly with Xcode (on a simulator or a physical devices results the same error)
Error in the log
Also, when used fastlane to deploy on testFlight the app crashes right after the start with this crash note:
DYLD error: Library not loaded: @rpath/OneSignalInAppMessages.framework/OneSignalInAppMessages
I also tried all the others suggestions on the other issues that seams to be related with this but none of this works for me.
Steps to reproduce?
Launch the app with the new xcode version and the error will happen
What did you expect to happen?
The app opens normaly
OneSignal Flutter SDK version
^5.0.0
Which platform(s) are affected?
- [X] iOS
- [ ] Android
Relevant log output
`dyld[56643]: Library not loaded: @rpath/OneSignalInAppMessages.framework/OneSignalInAppMessages
Referenced from: <8F6D1C6A-FDDD-31E5-9F3E-730C39D46109> /Users/saulosenoski/Library/Developer/CoreSimulator/Devices/B52C4F01-FC4D-40B7-9DD4-F88791A266C9/data/Containers/Bundle/Application/30670297-AF66-4CC3-802F-190496F3BB80/Runner.app/Runner
Reason: tried: '/Users/saulosenoski/Library/Developer/Xcode/DerivedData/Runner-digphvfbpqfhkherfvqsdjpatrug/Build/Products/Debug-iphonesimulator/OneSignalInAppMessages.framework/OneSignalInAppMessages' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21A342/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalInAppMessages.framework/OneSignalInAppMessages' (no such file), '/usr/lib/swift/OneSignalInAppMessages.framework/OneSignalInAppMessages' (no such file, not in dyld cache), '/Users/saulosenoski/Library/Developer/CoreSimulator/Devices/B52C4F01-FC4D-40B7-9DD4-F88791A266C9/data/Containers/Bundle/Application/30670297-AF66-4CC3-802F-190496F3BB80/Runner.app/Frameworks/OneSignalInAppMessages.framework/OneSignalInAppMessages' (no such file), '/Users/saulosenoski/Library/Developer/CoreSimulator/Devices/B52C4F01-FC4D-40B7-9DD4-F88791A266C9/data/Containers/Bundle/Application/30670297-AF66-4CC3-802F-190496F3BB80/Runner.app/Frameworks/OneSignalInAppMessages.framework/OneSignalInAppMessages' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21A342/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/OneSignalInAppMessages.framework/OneSignalInAppMessages' (no such file), '/usr/lib/swift/OneSignalInAppMessages.framework/OneSignalInAppMessages' (no such file, not in dyld cache), '/Users/saulosenoski/Library/Developer/CoreSimulator/Devices/B52C4F01-FC4D-40B7-9DD4-F88791A266C9/data/Containers/Bundle/Application/30670297-AF66-4CC3-802F-190496F3BB80/Runner.app/Frameworks/OneSignalInAppMessages.framework/OneSignalInAppMessages' (no such file), '/Users/saulosenoski/Library/Developer/CoreSimulator/Devices/B52C4F01-FC4D-40B7-9DD4-F88791A266C9/data/Containers/Bundle/Application/30670297-AF66-4CC3-802F-190496F3BB80/Runner.app/Frameworks/OneSignalInAppMessages.framework/OneSignalInAppMessages' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21A342/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OneSignalInAppMessages.framework/OneSignalInAppMessages' (no such file)`
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
@saulopef Interesting did this only started happening on Xcode version 15.0.1 or after jumping to Xcode 15?
@emawby I'm not sure, but I tried running on a machine with xcode <15 and it works, but my deploy machine is running with 15.0.1
any idea? the problem still happening
I am having the same error when running on real device, but it works fine on simulator, tried changing Dynamic Library Install name base to @rpath but I am facing the same issue.
I have never used OneSignal prior to XCode 15 so I don't know if the version has something to do with it tbh.
@saulopef Bro have you solve that problem already? Now, I got the same error like you. Can you tell me any suggestion ?