ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
11.24k stars 955 forks source link

bug: Live reload fails on Mac #7407

Open nparcher24 opened 1 month ago

nparcher24 commented 1 month ago

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

Apple M1 Max with MacOS version: 14.4.1 Ionic and Capacitor Version 7.2.0 Angular Version 17.3.4 (although I've tried with Angular 15 as well) CocoaPods Version 1.15.2 Xcode Version 15.3

When running an ionic app for iOS using the live reload flag, the xcodebuild process fails due to a CodeSign problem with the CapacitorCordova CocoaPod. The error given:

The following build commands failed: CodeSign /Users/path/test-live-reload/ios/DerivedData/70817A2D-5514-4CDE-BE82-BA3B3696D80F/Build/Products/Debug-iphonesimulator/CapacitorCordova/Cordova.framework (in target 'CapacitorCordova' from project 'Pods') (1 failure)

Expected Behavior

Live reload should start. The Xcodebuild process should finish.

Steps to Reproduce

  1. Create any of the boilerplate ionic applications using ionic start
  2. Get the app up and running with npm I
  3. Add an iOS application using ionic cap add ios
  4. Run the iOS app straight from Xcode first to ensure it works
  5. Attempt to run using live reload in either a simulator or an actual device (both fail) using ionic capacitor run ios -l --external

Xcodebuild.... fails.

Code Reproduction URL

https://github.com/nparcher24/test-live-reload

Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/Users/nicholasparrish/.config/yarn/global/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 7.8.4 @angular-devkit/build-angular : 17.3.4 @angular-devkit/schematics : 17.3.4 @angular/cli : 17.3.4 @ionic/angular-toolkit : 11.0.1

Capacitor:

Capacitor CLI : 6.0.0-rc.2 @capacitor/android : not installed @capacitor/core : 6.0.0-rc.2 @capacitor/ios : 6.0.0-rc.2

Utility:

cordova-res : 0.15.4 native-run : 2.0.1

System:

NodeJS : v20.10.0 (/Users/nicholasparrish/.nvm/versions/node/v20.10.0/bin/node) npm : 10.5.2 OS : macOS

Additional Information

It seems this issue has been raised and it was closed, but I'm unsure why. There are numerous people on the ionic forums having this same problem here

jcesarmobile commented 1 week ago

I can't reproduce on my mac. How did you install CocoaPods?