0

执行的命令: ionic cordova run ios

使用cordova for ios构建离子应用程序时出现以下错误:

>cordova build ios --device
[cordova] objc[39474]: Class AMSupportURLConnectionDelegate is implemented in both 
/usr/lib/libauthinstall.dylib (0x1ffa5ec10) and 
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice 
(0x1108ac2c8). One of the two will be used. Which one is undefined.
[cordova] objc[39474]: Class AMSupportURLSession is implemented in both 
/usr/lib/libauthinstall.dylib (0x1ffa5ec60) and 
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice 
(0x1108ac318). One of the two will be used. Which one is undefined.
[cordova] ** ARCHIVE FAILED **
[cordova] 
[cordova] xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.

项目、系统和环境信息:

离子:

 Ionic CLI                     : 5.4.16 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 6.0.1
   @angular-devkit/build-angular : 13.0.4
   @angular-devkit/schematics    : 13.0.4
   @angular/cli                  : 13.0.4
   @ionic/angular-toolkit        : 5.0.3

Cordova:

   Cordova CLI       : 10.0.0 (cordova-lib@10.1.0)
   Cordova Platforms : android 9.1.0, ios 6.2.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 6 other plugins)

Utility:

   cordova-res : 0.15.4
   native-run  : 1.5.0

System:

   ios-deploy : 1.11.4
   ios-sim    : 8.0.2
   NodeJS     : v16.13.1 (/usr/local/bin/node)
   npm        : 8.1.2
   OS         : macOS Big Sur
   Xcode      : Xcode 13.2.1 Build version 13C100

我正在使用带有 M1 处理器的 mac 设备。请为此发布任何解决方案。

4

0 回答 0