【代码】Xcode14升级 执行pod install --verbose 报错!

Xcode14升级 执行pod install --verbose 报错 [!] Oh no, an error occurred.( GoogleSDK Or Third SDK)

pod install --verbose  报错信息如下

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Command

```
/usr/local/bin/pod install --verbose
```

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?


### Stack

```
   CocoaPods : 1.11.3
        Ruby : ruby 2.6.10p210 (2022-04-12 revision 67958) [universal.x86_64-darwin22]
    RubyGems : 3.0.3.1
        Host : macOS 13.0 (22A380)
       Xcode : 14.0.1 (14A400)
         Git : git version 2.22.0
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : master - git - https://github.com/CocoaPods/Specs.git @ 5ca50a0ce988b653221cf16aadac9065e88ef963

               trunk - CDN - https://cdn.cocoapods.org/
```

### Plugins
```
cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0
```
......
......中间省略......
......

/usr/local/bin/pod:23:in `
' ``` ――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred.

解决:

  1. rm -rf ~/.cocoapods/repos/trunk
  2. pod repo update 或者执行  pod install
    
    报错如下:
    [!] Couldn't determine repo type for URL: `https://github.com/CocoaPods/Specs.git`: Permission bits for '/Users/myUser/.netrc' should be 0600, but are 644
    
    解决:
    
    执行:chmod 600 ~/.netrc
    
  3. pod install --verbose
    
    成功!

参考资料 :
https://stackoverflow.com/questions/73341448/jsonparsererror-451-unexpected-token-at-example-googlemapsdemos-resourcesicon-default.png?t=M85Bhttps://stackoverflow.com/questions/73341448/jsonparsererror-451-unexpected-token-at-example-googlemapsdemos-resourceshttps://stackoverflow.com/questions/69427082/problem-with-cocoapods-showing-error-couldnt-determine-repo-type-for-url-wheicon-default.png?t=M85Bhttps://stackoverflow.com/questions/69427082/problem-with-cocoapods-showing-error-couldnt-determine-repo-type-for-url-whe

你可能感兴趣的:(IOS,ios开发)