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]: xcodebuild command fail "OneSignal.h file not found" but on Xcode app can build and archive #1517

Closed
2 of 3 tasks
Rommadon opened this issue May 24, 2023 · 1 comment

Comments

@Rommadon
Copy link

Rommadon commented May 24, 2023

What happened?

when trying to build (xcodebuild command) for iOS, I get an error that it misses a Onesignal.h file but on Xcode app I can build it success.

In Podfile:

target 'OneSignalNotificationServiceExtension' do
  # use_frameworks!
  pod 'OneSignalXCFramework', '>= 3.0.0', '< 4.0'
end

And I try setting build pod file from other suggestion issue before
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"

But i got error.

Steps to reproduce?

Xcode app version 14.3
Apple M1

1. Try to build app by xcodebuild command

xcodebuild -workspace xxxxxxxx.xcworkspace -scheme xxxxxx -sdk iphoneos -configuration ProductionRelease

What did you expect to happen?

I expected can use xcodebuild command

React Native OneSignal SDK version

4.5.1

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

/ios/OneSignalNotificationServiceExtension/NotificationService.m:1:9: fatal error: 'OneSignal/OneSignal.h' file not
      found
#import <OneSignal/OneSignal.h>
        ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Code of Conduct

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

Screenshot 2566-05-25 at 16 18 32 Fixed by Link binary

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