Skip to content
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]: Linking fails on macbook pro m2 when trying to run app on iphone simulator #1669

Open
2 of 3 tasks
markoj3s opened this issue Mar 20, 2024 · 1 comment
Open
2 of 3 tasks

Comments

@markoj3s
Copy link

markoj3s commented Mar 20, 2024

What happened?

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?

  • 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

  • I agree to follow this project's Code of Conduct
@markoj3s
Copy link
Author

CC @rgomezp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant