pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.69k stars 282 forks source link

iOS Build Fail #2544

Closed kaknut closed 2 years ago

kaknut commented 2 years ago

Facing issues with iOS build, here's the error I'm getting. (I did installl pods)

CleanShot 2022-01-27 at 11 28 45@2x
ghost commented 2 years ago

Hello kaknut, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

alex-titarenko commented 2 years ago

Just tried to build iOS app for my PWA and I have the exact same errors.

Jaylyn-Barbee commented 2 years ago

Hello, what is the URL you used to generate your files so that I can test on my end?

kaknut commented 2 years ago

It's https://app.finmag.club/

Jaylyn-Barbee commented 2 years ago

I was able to build your project and run it on the emulator. I am running the latest version of macOS and did a fresh install of XCode this morning. image

alex-titarenko commented 2 years ago

I forgot to add that I'm running on MacBook Pro M1, that may be the issue. I found this: https://github.com/CocoaPods/CocoaPods/issues/10518 and I actually have an error running pod install

alex-titarenko commented 2 years ago

@Jaylyn-Barbee can you confirm that generated template from PWABuilder is supposed to work properly on M1 MacBooks without installing Rosseta?

Jaylyn-Barbee commented 2 years ago

@alex-titarenko Just to verify have you tried sudo gem install cocoapods per the next steps document?

kaknut commented 2 years ago

@alex-titarenko Just to verify have you tried sudo gem install cocoapods per the next steps document?

IDK why, but I'm still getting errors (my pod file is empty)

alex-titarenko commented 2 years ago

@Jaylyn-Barbee that command sudo gem install cocoapods was exactly the problem for me. It does not correctly install cocoapods on M1 MacBooks.

You can read more here: https://stackoverflow.com/questions/64901180/how-to-running-cocoapods-on-apple-silicon-m1

The following commands solved the problem for me and now I can build the project!!!!

sudo gem uninstall cocoapods
brew install cocoapods

Basically, you have to install cocoapods with HomeBrew instead to make it working on M1.

Jaylyn-Barbee commented 2 years ago

@alex-titarenko Thank you for this, i'll make a PR to mention this in the next-steps doc.