MacBook Pro with M1 chip -- cannot build the application for simulator when connected to Firebase

156 views
Skip to first unread message

Andrew Villegas

unread,
Apr 8, 2021, 8:15:10 AM4/8/21
to Flutter Development (flutter-dev)
Hi flutter community,

I recently got a 2020 MacBook Pro with the M1 chip (Silicon Valley), and I can't get the simulator to work with apps using Firebase. 
Interestingly, when I clone github projects that don't use Firebase, the simulator runs fine-- but I get the following output when I try to run my project, as well as others', that are connected to Firebase:


Could not build the application for the simulator.
Error launching application on iPhone 11.


A more detailed description of this error is: 

Error output from Xcode build:
    objc[57483]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f47f78f0) and ?? (0x1171bc2b8). One of the two will be used. Which one is undefined.
    objc[57483]: Class AMSupportURLSession is implemented in both ?? (0x1f47f7940) and ?? (0x1171bc308). One of the two will be used. Which one is undefined.
    ** BUILD FAILED **

Finally, Xcode's output:
    error: Multiple commands produce 'APPPATH/Runner':
    1) Target 'Runner' has copy command from 'APPPATH/ios/Runner/Runner' to 'APPPATH/build/ios/Debug-iphonesimulator/Runner.app/Runner'
    2) Target 'Runner' has link command with output 'APPPATH/build/ios/Debug-iphonesimulator/Runner.app/Runner'


Also, flutter doctor returns no errors when ran, just in case.


Is anyone else with a MacBook m1 chip facing the same issues? Any guidance would be greatly appreciated.

Thanks, and best,
Andrew V.

Bridget Kelly O'Sheehan

unread,
Apr 8, 2021, 8:44:29 AM4/8/21
to Flutter Development (flutter-dev)
Hi Andrew,

Just caught this, I have the same MacBook Air with the same Chip...  I transferred from Linux (Mint) over to Mac back in Dec.. I'm not kidding the number of issues I've had with just setting up dev basics due to this M1 Chip is ridiculous... 

I remember seeing that error, but I'm not too sure if it's something to do with Rosetta and the configuration of the M1 chip could be preventing it for what ever reason.  Have you tried deploying an app to the phone to see if it works because I have found glitches within the simulators they don't show 'certain' features but when you run the app on phone, sure enough, works fine?

Hope that helps x

Bridget

Andrew Villegas

unread,
Apr 8, 2021, 3:04:18 PM4/8/21
to Bridget Kelly O'Sheehan, Flutter Development (flutter-dev)
Hi Bridget,

Thanks for replying to this. Yes, it's crazy the number of bugs/ obstacles to overcome when programming with the M1 chip!!

I was testing my app on my android phone (which just broke yesterday) and it worked fine. Now, I'm trying to test this app in my physical iOS without any luck. I'm facing similar issues as the ones I indicated with my iOS simulator:

Launching lib/main.dart on iPhone in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: YFQW672D44
Running Xcode build...
Xcode build done.                                            5.0s
Failed to build iOS app
Error output from Xcode build:
    objc[90283]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f47f78f0) and ?? (0x1206942b8). One of the two will be used. Which one is undefined.
    objc[90283]: Class AMSupportURLSession is implemented in both ?? (0x1f47f7940) and ?? (0x120694308). One of the two will be used. Which one is undefined.
    ** BUILD FAILED **


Xcode's output:
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Any ideas as to how I could fix the "building targets in parallel" issue?

Thanks!

--Andrew V.

--
You received this message because you are subscribed to a topic in the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/flutter-dev/6nJBfWwRCBY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/df9f4e6f-42fa-4889-ace0-0364209b418en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages