Xcode 7 Bot pod install

I get an error when trying to install modules using a bot. Can someone explain what the problem is? I tested this solution on Configuring Xcode 6 and Apple Server 4.0 for continuous integration with Cocoapods

Before the integration script:

export LANG=en_US.UTF-8 cd ./CIT pwd pod install --verbose

Error:

/ Library / Developer / XcodeServer / Integration / Cache / 27e5cbb07ffa7d7771a63d27e6002e1e / Source / CIT Preparation

Updating local spec stores

Spec spec repo master update $ / Applications / Xcode.app / Contents / Developer / usr / bin / git pull --ff-only Update dc43eae..957650b

Dependency analysis

Checking Goals for Integration Using ARCHS to Build Target Pods : (``)

Finding Subfile Changes - AFNetworking

Resolving Podfile [!] The following requirements cannot be met:

  • AFNetworking Podfile
  • AFNetworking (= 2.6.0) requires Podfile.lock

/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/resolver.rbhaps88:in handle_resolver_error' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/resolver.rb:69:in rescue in resolve '/ Library / Ruby / Gems / 2.0.0 / gems / cocoapods-0.38.2 / lib / cocoapods / resolver.rb: 56: in resolve' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/installer/analyzer.rb:535:in block in resol_dependencies' / Library / Ruby / Gems / 2.0.0 / gems / cocoapods-0.38 .2 / lib / cocoapods / user_interface.rb: 59: in section' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/installer/analyzer.rb:533:in resolve_dependencies' / Library / Ruby / Gems / 2.0.0 / gems / cocoapods-0.38.2 / lib / cocoapods / installer / analyzer.rb: 70: in analyze' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:210:in parse '/ Library / Ruby / Gems / 2.0.0 / gems / cocoapods-0.38.2 / lib / cocoapods / installer.rb: 133: in block in resolve_dependencies' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/user_interface.rb:59:in block in resolve_dependencies' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/user_interface.rb:59:in section '/ Library / Ruby / Gems / 2.0.0 / gems / cocoapods-0.38.2 / lib / cocoapods / installer.rb: 132: in resolve_dependencies' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/installer.rb:104:in install! '/ Library / Ruby / Gems / 2.0.0 / gems / cocoapods-0.38.2 / lib / cocoapods / command / project.rb: 71: in run_install_with_update' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/command/project.rb:101:in run '/ Library / Ruby / Gems / 2.0.0 / gems / claide-0.9.1 / lib / claide / command.rb: 312: in run' /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/command.rb:48:in run' / Library / Ruby / Gems / 2.0.0 / gems / cocoapods-0.38. 2 / bin / pod: 44: in <top (required)>' /usr/bin/pod:23:in download' / usr / bin / pod: 23: in '' Error: your local changes in the following files will be overwritten merge: CocoaPods-version.yml Features / ASStarRatingView / 0.1.0 / ASStarRatingView.podspec.json Features / AppNexusOASSDK / 1.0.0 / AppNexusOASSDK.podspec.json Features / CrashlyticsFramework / 2.1.6 / CrashlyticsFramework.podspec.json ticks / CrashlyticsFramework / 2.1.7 / CrashlyticsFramework.podspec.json Characteristics / CrashlyticsFramework / 2.1.9 / CrashlyticsFramework.podspec.json Characteristics / CrashlyticsFramework / 2.2.0 / CrashlyticsFramework.podspec.json Characteristics / CrashlyticsFrameshod.frameworkframework / 2.2.1 .json Features / CrashlyticsFramework / 2.2.10 / CrashlyticsFramework.podspec.json Features / CrashlyticsFramework / 2.2.2 / CrashlyticsFramework.podspec.json Features / CrashlyticsFramework / 2.2.3 / CrashlyticsFramework.podspec.json Features / CrashlyticsFrameworkFrame.4.4 / CrashlyticsFramework .podspec.json Features / CrashlyticsFramework / 2.2.5.1/CrashlyticsFramework.podspec.json Features / CrashlyticsFramework / 2.2.5.2/CrashlyticsFramework.podspec.json Features / CrashlyticsFramework / 2.2.5 / CrashlyticsFrame work.podspec.json Features / CrashlyticsFramework / 2.2.9 / CrashlyticsFramework.podspec.json Features / FlurrySDK / 3.0.9 / FlurrySDK.podspec.json Features / FlurrySDK / 4.0.1 / FlurrySDK.podspec.json Features / FlurrySDK / 4.0. 4 / FlurrySDK.podspec.json Features / FlurrySDK / 4.0.5 / FlurrySDK.podspec.json Features / FlurrySDK / 4.1.0 / FlurrySDK.podspec.json Features / FlurrySDK / 4.2.1 / FlurrySDK.podspec.json Features / FlurrySDK / 4.2.2 / FlurrySDK.podspec.json Features / FlurrySDK / 4.2.3 / FlurrySDK.podspec.json Features / FlurrySDK / 4.2.4 / FlurrySDK.podspec.json Features / FlurrySDK / 4.3.0 / FlurrySDK.podspec.json Features / FlurrySDK / 4.3.1 / FlurrySDK.podspec.json Features / FlurrySDK / 4.3.2 / FlurrySDK.podspec.json Features Iki / FlurrySDK / 4.4.0 / FlurrySDK.podspec.json Features / FlurrySDK / 5.0.0 / FlurrySDK.podspec.json Features / FlurrySDK / 5.1.0 / FlurrySDK.podspec.json Features / FlurrySDK / 5.2.0 / FlurrySDK.podspec .json Features / FlurrySDK / 5.3.0 / FlurrySDK.podspec.json Features / FlurrySDK / 5.4.0 / FlurrySDK.podspec.json Features / FlurrySDK / 6.0.0 / FlurrySDK.podspec.json Features / FlurrySDK / 6,2,0 /FlurrySDK.podspec.json Features / FlurrySDK / 6.4.0 / FlurrySDK.podspec.json Features / FlurrySDK / 6.5.0 / FlurrySDK.podspec.json Specs / Google -Maps-IOS-SDK / 1.9.2 / Google-Maps iOS -SDK.podspec.json Specifications / LibComponentLogging Pods / 0.0.1 / LibComponentLogging-pods.podspec.json Specifications / LibComponentLogging Pods / 0.0.2 / LibComponentLogging-pods.podspec.json Specifications / Moya / 0.6.1 / Moya.podspec.json Specifications / Moya / 0.6 / Moya.podspec.json Specifications / Moya / 0.7.0 / Moya.podspec.json Specifications / Moya / 0.7.1 / Moya.podspec .json Features / Moya / 0.8.0 / Moya.podspec.json Features / Moya / 1.0.0 / Moya.podspec.json Features / Moya / 1.1.0 / Moya.podspec.json Features / Moya / 1.1.1 / Moya .podspec.json Features / OpenCV / 2.4.10 / OpenCV.podspec.json Features / OpenCV / 2.4.9 / OpenCV.podspec.json Features / PromiseKit / 1.5.3 / PromiseKit.podspec.json Features / RxSwift / 0.7.1 /RxSwift.podspec.json Specifications / RxSwift / 0.7 / RxSwift.podspec.json Specifications / RxSwift / 0.8 / RxSwift.podspec.json Specifications / RxSwift / 0.9 / RxSwift.podspec.json Specifications / RxSwift / 1.0 / RxSwi ft.podspec.json Specifications / RxSwift / 1.1 / RxSwift.podspec.json Specifications / RxSwift / 1.2.1 / RxSwift.podspec.json Specifications / RxSwift / 1.2 / RxSwift.podspec.json Specifications / RxSwift / 1.3 / RxSwift.pods. json Specifications / RxSwift / 1.4 / RxSwift.podspec.json Specifications / RxSwift / 1.5 / RxSwift.podspec.json Specifications / RxSwift / 1.6 / RxSwift.podspec.json Specifications / TSMessages / 0.9.10 / TSMessages.podspec.json Specifications / TSMessages / 0.9.11 / TSMessages.podspec.json Features / TSMessages / 0.9.12 / TSMessages.podspec.JSON Features / TSMessages / 0.9.4 / TSMessages.podspec.json Features / TSMessages / 0.9.5 / TSMessages.podspec. json Features / TSMessages / 0.9.6 / TSMessages.podspec.json Features / TSMessages / 0.9.7 / TSMessages.podspec.json Features / TSMessages / 0.9.8 / TSMessages.podspec.json Features / TSMessages / 0.9.9 / TSMessages.podspec.json Features / UIView + wiggle /1.0.0/UIView + Wiggle.podspec.json Features / UIView + wiggle /1.0 .1 / UIView + Wiggle.podspec.json Specifications / UIView + wiggle /1.0.2/UIView + Wiggle.podspec.json Specifications / toxcore SPR / 0.1.0 / toxcore-ios.podspec.json Specifications / toxcore SPR / 0.1. 1 / toxcore-ios.podspec.json Specifications / toxcore SPR / 0.1.2 / toxcore-ios.podspec.json Specifications / toxcore SPR / 0.1.3 / toxcore-ios.podspec.json Specifications / toxcore SPR / 0.1.4 / toxcore-ios.podspec.json Specifications / toxcore-ISN Aborting

[!] CocoaPods failed to update master repository. If this is an unexpected problem and it persists, you can check it with pod repo update --verbose

+5
source share
1 answer

I needed to reset the Cocoapods repo, which is used by the _xcsbuildd user on my XcodeServer to overcome the problem noted above. Here is how I did it:

1) On your OS X server (running XcodeServer), select " Users " in the "Server" window, then right-click on " _xcsbuildd " and select " More options .... Change" Local Shell "to" / bin / false "to" / bin / bash ". (This will allow you to log in as user '_xcsbuildd' from the terminal window.)

2) In the terminal window on OS X Server, log in as a user. Then, to log in as _xcsbuildd , use sudo su - _xcsbuildd .

3) Delete the Cocoapods repository for user _xcsbuildd using rm -rf ~/.cocoapods .

4) Finally, integrate your BOT with your Xcode development client, which will rebuild the Cocoapods repository as part of its integration trigger step.

(My client environment is OS X 10.11 and Xcode 7.0.1, while my server environment is OS X 10.11, OS X Server 5.0.4 and Xcode 7.0.1. Cocoapods version 0.38.2)

The following link was useful to me: http://honzadvorsky.com/articles/2015-08-17-17-30-xcode_server_tutorials_3_prebuild__postbuild_scripts/ .

+7
source

Source: https://habr.com/ru/post/1232235/


All Articles