Solvedreact native onesignal OneSignal OneSignalNotificationExtension build fail on Xcode 12 related to cocoapods / architecture / simulator issues


Just updated from Xcode 10 to Xcode 12, before on v10 this project built and run successful.

OneSignalNotificationExtension target build fail:

Undefined symbol: _swift_getObjCClassMetadata

Undefined symbol: type metadata accessor for Foundation.UUID

Undefined symbol: Swift._bridgeAnythingToObjectiveC<A>(A) -> Swift.AnyObject

Undefined symbol: protocol descriptor for Swift.ExpressibleByFloatLiteral

Undefined symbol: associated conformance descriptor for Swift.ExpressibleByFloatLiteral.Swift.ExpressibleByFloatLiteral.FloatLiteralType: Swift._ExpressibleByBuiltinFloatLiteral

Undefined symbol: associated type descriptor for Swift.ExpressibleByFloatLiteral.FloatLiteralType

Undefined symbol: protocol descriptor for Swift.ExpressibleByIntegerLiteral

Undefined symbol: associated type descriptor for Swift.ExpressibleByIntegerLiteral.IntegerLiteralType

Undefined symbol: method descriptor for Swift.ExpressibleByIntegerLiteral.init(integerLiteral: A.IntegerLiteralType) -> A

Undefined symbol: static Foundation.UUID._unconditionallyBridgeFromObjectiveC(__C.NSUUID?) -> Foundation.UUID

Undefined symbol: value witness table for Builtin.Int32

Undefined symbol: protocol witness table for Swift.Int : Swift._ExpressibleByBuiltinIntegerLiteral in Swift

and 100 errors more

I'm not so good on Xcode and Mac so I'm sorry if it's no clear or misleading.

Thank you


react-native 0.63.2
onesignal-react-native 3.9.1
Xcode 12
Installed via npm and linked with pods

Steps to Reproduce Issue:

  1. Build
34 Answers

✔️Accepted Answer

I’m having some issues too with Xcode 12

I can successfully build the project on Xcode 11. However as soon as I open the Xcode12 and build the project I get the following error:

 Linking OneSignalNotificationServiceExtension

  clang: error: no such file or directory: '/Users/carloscuesta/project-folder/ios/build/project/Build/Products/Debug-iphonesimulator/libRCTOneSignal.a'

This doesn’t seems an error from OneSignal side. Looks like there’s something weird with cache or something like that,
things I tried:

  • Delete Xcode Derived Data - rm -rf ~/Library/Developer/Xcode/DerivedData/
  • Clear react-native, yarn cache and reinstall dependencies.
  • Reset simulator data and contents
  • Restarted the computer

I don't know what else I should try, I would say that everything is linked properly since the application is working good on Production and the build works with Xcode 11.

I have the library linked manually using the OneSignal guide, any idea on how to fix this ? 🙏🏼

Typically when I got this issue it was solved by cleaning the DerivedData but I can't get rid of the error 😞

Other Answers:

i am using react-native-onesignal 3.9.1 on react native 0.60.0 version...I am able to resolve this issue by including x86_64 inside User-Defined settings (VALID_ARCHS)

I've discovered something weird,

If I try to build the application with Xcode 12, it always fails. However If I build the application first with Xcode 11 and then open up Xcode 12 and build the app it works 🤯

However as soon as I clean build and try to rebuild again with Xcode 12 it starts to fail with the same error again 😖

Same error here with with Xcode 12 and onesignal-react-native 3.9.1 :-(
Projects were working before the update.

Related Issues:

react native onesignal IOS pod install is failing
Can you try pod update? Hello I have problem installing this library ...
react native onesignal Could not find firebase-iid.aar...
@rodrigofbm In your android/build.gradle in your repositories section try moving google() ABOVE jcen...
react native onesignal Multiple dex files define Lcom/google/android/gms/internal/zzas;
Update 2018-11-07 This looks to be conflict with another plugin including a different interdependenc...
react native onesignal OneSignalNotificationServiceExtension causes sharedApplication build issues
Went through this exact same issue and like @indapublic did I had added the extension to my Podfile ...
react native onesignal Google Play Services Library Error
@brunoandradebr @DaniloCouto @ifanfaizal I fix Description: The registred device returns an error on...
react native onesignal Not working on React Native 0.60
I had same problem and just removed the following lines from package.json in node_modules/react-nati...
react native onesignal Get the current playerid/userid
The goal was to recieve PlayerID from Onesignal on application launch So in App.js for me worked the...
react native onesignal Unable to find libRCTOneSignal.a
Turns out react-native link did not work correctly as usual :D I just had to manually add the RCTOne...
react native onesignal OneSignal OneSignalNotificationExtension build fail on Xcode 12 related to cocoapods / architecture / simulator issues
I’m having some issues too with Xcode 12 I can successfully build the project on Xcode 11 ...
react native onesignal Unable to add Notification Service Extension
@jdegger that approach seems to have worked for me also Description: On iOS I am able to setup the S...
react native onesignal RN 0.40.0 iOS Won't Build: ld: 102 duplicate symbols for architecture arm64
@dwilt @Ouadie As of version 3.0.3 the OneSignal iOS native SDK is now part of it You will need to r...
react native keychain SDK Build Tools revision (23.0.1) is too low for project :react-native-keychain.
Ok I found a solution to this For people facing the same problem in the future Hey there ...
material components android Manifest merger failed : Attribute application@appComponentFactory
I had similar problem We're transitioning from github issues to a public buganizer component Rather ...
expo Error: fsevents unavailable (this watcher can only be used on Darwin)
Possible solution: I had installed watchman via npm install -g watchman but apparently this installs...
flutter Multiple commands produce '/build/ios/Debug-iphonesimulator/
I was able to fix it by opening the Runner workspace project in Xcode 10 Then navigate to File ...
flutter App Store iOS submission fails: The bundle does not support the minimum OS Version specified in the Info.plist
After doing a flutter clean changing MinimumOSVersion (inside /ios/Flutter/AppframeworkInfo.plist) t...
flutter '' has different version for the compile (26.1.0) and runtime (27.0.1) classpath
is like this i receive an error when i run flutter run My file is: flutter doctor: ...
flutter Why does my text not wrap?
You have to wrap Column in a flexible Without flexible the column's width is not constrained to the ...
flutter Unexpected top padding in ListView put inside scaffold with no appBar
Yeah this is intentional If you put a widget before the ListView you should wrap the ListView with a...
flutter Missing xcode dependency: Python module "six"
try python2.x -m pip install six by @humblerookie's suggest or brew reinstall python@2 pip install s...
expo exp build:android fails
This works exp start Cancel ctrl c then do exp build:android. Running exp build:android errors fails...
flutter flutter messaging: set the notification icon
Hey guys I fought with this for the better part of a day For some strange reason there are no tutori...
flutter Issue with cloud_firestore - Cannot fit requested classes in a single dex file.
As a workaround you can try enabling mutlidex for Android App by following Enable multidex for apps ...
flutter D8: Program type already present: io.flutter.BuildConfig
@smrucv I received the same error but after flutter clean and flutter packages get everything works ...
flutter Introduction of characters package causes crash on flutter run for preexisting Flutter applications
In my case I resolved the issue with flutter clean After e0ed12c I get this error when building: @ju...
nativescript cli TNS doctor doesn't recognize Xcode (High Sierra)
HI @philipfeldmann Can yhou please run xcodebuild -version and paste the output? May be Xcode is ins...
flutter Making Network http error SocketException: Failed host lookup
@hoc081098 Double-check / make sure you have <uses-permission android:name=android.permission.INTERN...
flutter Support inlining Android/iOS views
iOS view embedding support has landed on master This is still just a preview There are multiple open...
flutter ✗ Android license status unknown.
Hi everyone Steps to Reproduce Please tell us what you were doing and what went wrong If you are run...
react native mapbox gl No static method toHumanReadableAscii
here is workaround: build.gradle got the following error on runtime: java.lang.NoSuchMethodError: No...
flutter idevice_id cannot run on catalina
When you're developing on Catalina Steps to Reproduce Run flutter doctor on macOS Catalina I get the...
flutter type 'List<dynamic>' is not a subtype of type 'List<String>'
The problem is your fromMap constructor is reading from a Map<String dynamic> ...
flutter TextField is hidden by keyboard inside of a Modal Bottom Sheet
This may not work for all situations but I have a modalBottomSheet that contains only a TextField ...
retrofit Kotlin & @Body
You can still use Map just suppress its wildcardness with @JvmSuppressWildcards ...
NativeBase Needs to tap twice to fire onPress function when keyboard is open
@bm-software Use keyboardShouldPersistTaps={'handled'} and will works fine. react-native ...
react native firebase 🔥(Android) Program type already present: io.invertase.firebase.BuildConfig
I think I found my ultimate error here In my package.json file I had at some point earlier ...
flutter Dismissing keyboard programatically
This is a better way as it also clears the focus: FocusScope.of(context).requestFocus(new FocusNode(...
flutter How to solve: Android license status unknown and also Android sdkmanager tool not found? Tried everything(as i think)
The answer is here Uncheck Hide Obsolete Packages and you'll see Android SDK Tools (Obsolete) 26.1.1...
flutter MissingPluginException: No implementation found for method
@mravn-google Yeah turned out I had to quit the flutter run process and start it up again Just a ful...
flutter firebase_auth: ^0.8.0+1 crashes on Android
Here i put this in file: android/ and changed targetSdkVersion to 28 and it worked...
react native modal The statusbar turns white when the modal is open (only on certain devices)
statusBarTranslucent property has been added to Modal of RN 0.62 I think this problem has been solve...
flutter Android sdkmanager tool not found (C:...\Local\Android\sdk\tools\bin\sdkmanager)
This worked for me: open Android Studio's SDK Manager go to the Android SDK tab under SDK Tools ...
flutter 1.22.2 - Flutter plugin not installed; this adds Flutter specific functionality.
Hey @bhanuka96 try this line of code How do I fix this android plugin error? This error is being com...
cli pod install failure with glog
what helped me: sudo xcode-select --switch /Applications/ Ask your Question I have been try...