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

After adding, can't run app on iOS Simulator M1 #10

Closed
armandojimenez opened this issue May 23, 2021 · 6 comments
Closed

After adding, can't run app on iOS Simulator M1 #10

armandojimenez opened this issue May 23, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@armandojimenez
Copy link

Hi, after adding this package, I can't run my app on my iOS simulator on an M1 Mac, getting this error:

 /Users/armandojimenez/Development/Flutter/SDK/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_funding_choices-0.2.0/ios/Classes/SwiftFlutterFundingChoicesPlugin.swift:3:8: error: no such module 'UserMessagingPlatform'
    import UserMessagingPlatform
           ^
78
    Command CompileSwift failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Analyzing workspace
    note: Constructing build description
    note: Build preparation complete

@armandojimenez armandojimenez added the bug Something isn't working label May 23, 2021
@Skyost
Copy link
Owner

Skyost commented May 24, 2021

I'm not an expert of pods and all of this, but go to the ios folder and run pod install and it may work after that.

@Andre-lbc
Copy link
Contributor

Hi! First: thanks for the plugin!

I am also having that same error (but on an Intel Mac). In my case, it started happening after I upgraded the Flutter SDK (to 2.2.0) along with some dependencies, one of them being Firebase, which started to require an iOS deployment target of 10 or higher (as seen here: https://firebase.flutter.dev/docs/installation/ios#ios-supported-versions). I've tried to remove and reinstall all pods, to no avail. I even created a new project with just the same pubspec and had the same results.

I think the main problem here is that the reference to Google UMP SDK we are using needs to be updated (latest version as of writing is 2.0.0, and I believe this plugin is currently using 1.0.0 for android and 1.3.0 for iOS). I also think we should bump the iOS "platform" version on the podspec to 10.0, here:


Admob currently requires 10.0 or later (https://developers.google.com/admob/ios/quick-start), so now that we have ads and analytics on 10.0, I think we can stop using 9.0.

UMP SDK versions and release notes:
https://developers.google.com/admob/ump/ios/download

BTW 1: Version 1.4.0 states: "Included an arm64 slice for simulators to support testing on Apple Silicon devices.", I think this is the fix for his problem.

BTW 2: I could try to fork and try a PR, but I have just a sliver of an idea on how these plugins work, so it would probably take more time than actually needed.

@Andre-lbc
Copy link
Contributor

Hello again. So, I ended up forking it and updated accordingly, which apparently resolved my problem. I am now using it in two of my apps, so far without issues. Would you like me to make a pull request?

My fork:
https://github.com/Andre-lbc/FlutterFundingChoices

@Skyost
Copy link
Owner

Skyost commented May 31, 2021

@Andre-lbc Great ! It would be very nice of you if you could submit a pull request 😉

@Andre-lbc
Copy link
Contributor

Sorry for the delay. I've just submitted it: #13 😬

@Skyost
Copy link
Owner

Skyost commented Jun 8, 2021

Forgot to link it with #13, but I think we can close it now.

@Skyost Skyost closed this as completed Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants