Getting below build error when trying to run my react-native app on iphone simulator using yarn ios command:
The following build commands failed:
Ld /Users/markoj/Library/Developer/Xcode/DerivedData/MyApp-bdeprufjuqrbmwcsqfkczcaqhhyn/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension normal (in target 'OneSignalNotificationServiceExtension' from project 'MyApp')
(1 failure)
Inside xcode I could also find below log for the Link OneSignalNotificationServiceExtension (arm64) step:
In /Users/markoj/Documents/Repos/my-app/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/OneSignal(OneSignal-arm64-master.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/markoj/Documents/Repos/my-app/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/OneSignal'
I also tried excluding arm64 architecture as suggested in some issues, but if I do so, I am able to build but then get the following error:
error Failed to launch the app on simulator, An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=3):
Simulator device returned an error for the requested operation.
No such process
Underlying error (domain=NSPOSIXErrorDomain, code=3):
Application launch for 'com.example.MyApp' did not return a valid pid nor a launch error.
No such process
Steps to reproduce?
Using below versions:
react-native-onesignal (4.5.2) ※ yarn.lock
OneSignal (3.4.4) ※ Podfile.lock
OneSignalXCFramework (3.12.6) ※ Podfile.lock
Then running: yarn ios
to run the following simulator: { platform:iOS Simulator, id:50722B1C-6320-48DC-BB8B-DFC7B98F30B9, OS:16.4, name:iPhone SE (3rd generation) }
What did you expect to happen?
Expecting the build to successfully finish and run the app in the iphone simulator.
React Native OneSignal SDK version
Release 4.5.2
Which platform(s) are affected?
[X] iOS
[ ] Android
Relevant log output
The following build commands failed:
Ld /Users/markoj/Library/Developer/Xcode/DerivedData/MyApp-bdeprufjuqrbmwcsqfkczcaqhhyn/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension normal (in target 'OneSignalNotificationServiceExtension' from project 'MyApp')
(1 failure)
Code of Conduct
[X] I agree to follow this project's Code of Conduct
What happened?
Getting below build error when trying to run my react-native app on iphone simulator using
yarn ios
command:Inside xcode I could also find below log for the
Link OneSignalNotificationServiceExtension (arm64)
step:I also tried excluding
arm64
architecture as suggested in some issues, but if I do so, I am able to build but then get the following error:Steps to reproduce?
What did you expect to happen?
Expecting the build to successfully finish and run the app in the iphone simulator.
React Native OneSignal SDK version
Release 4.5.2
Which platform(s) are affected?
Relevant log output
Code of Conduct