Onesignal-flutter-sdk: Build app on iOS simulator

Created on 7 Jun 2021  路  4Comments  路  Source: OneSignal/OneSignal-Flutter-SDK

I used version 3.0.0 in my app, after that I can run app with xcode on simulator but Android studio can鈥檛 run on simulator .

This is my flutter doctor :

[鉁揮 Flutter (Channel stable, 2.2.1, on macOS 11.4 20F71 darwin-x64, locale
en-US)
[鉁揮 Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[鉁揮 Xcode - develop for iOS and macOS
[鉁揮 Chrome - develop for the web
[鉁揮 Android Studio (version 4.2)
[鉁揮 Connected device (3 available)

this is error log on android studio.
ld: in /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 '/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/OneSignal' clang: error: linker command failed with exit code 1 (use -v to see invocation)

After this error i open xcode and click on run and it run on simulator with no error.

What is the problem?

Most helpful comment

@AlirezaDaryani
I was able to run it on the Simulator by setting the following

Screen Shot 2021-06-09 at 10 59 27 AM

All 4 comments

I have the same problem

@AlirezaDaryani
I was able to run it on the Simulator by setting the following

Screen Shot 2021-06-09 at 10 59 27 AM

@dazuaz
Problem fixed with the following setting, thanks.

How do you make this fix permanent?

Was this page helpful?
0 / 5 - 0 ratings