Starting a new Swift project and trying to do pod install
but it won't create an .xcworkspace
project.
ℹ Please replace this with what you did.
Analyzing dependencies
Downloading dependencies
Installing Alamofire (4.1.0)
Installing IQKeyboardManagerSwift (4.0.7)
Installing Kingfisher (3.2.1)
Installing ModelMapper (6.0.0)
Installing SnapKit (3.0.2)
Installing SwiftyUserDefaults (3.0.0)
Generating Pods project
[1] 1408 abort pod install
ℹ Please replace this with what you expected to happen.
pod install
creates an .xcworkspace
project
.xcworkspace
project is not created.
ℹ Please replace this with the output of pod env
.
CocoaPods : 1.1.1
Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
RubyGems : 2.6.8
Host : Mac OS X 10.12.1 (16B2657)
Xcode : 8.1 (8B62)
Git : git version 2.9.0
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : artsy - https://github.com/artsy/Specs.git @ 645efcc8ecbd3fcfc44770e265b8436a7664f1bf
master - https://github.com/CocoaPods/Specs.git @ e8ef52081da5a451bf91395b48699976cece82e8
Executable Path: /usr/local/bin/pod
cocoapods-deintegrate : 1.0.1
cocoapods-keys : 1.7.0
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.1.1
cocoapods-try : 1.1.0
platform :ios, '9.0'
use_frameworks!
target 'Lumberjack' do
pod 'Alamofire', '~> 4.1.0'
pod 'IQKeyboardManagerSwift', '~> 4.0.7'
pod 'Kingfisher', '~> 3.2.1'
pod 'ModelMapper', '~> 6.0.0'
pod 'SnapKit', '~> 3.0.2'
pod 'SwiftyUserDefaults', '~> 3.0.0'
end
This is the output from pod install --verbose
- Running pre install hooks
Analyzing dependencies
Inspecting targets to integrate
Using `ARCHS` setting to build architectures of target `Pods-Lumberjack`: (``)
Resolving dependencies of `Podfile`
Comparing resolved specification to the sandbox manifest
A Alamofire
A IQKeyboardManagerSwift
A Kingfisher
A ModelMapper
A SnapKit
A SwiftyUserDefaults
Downloading dependencies
-> Installing Alamofire (4.1.0)
> Copying Alamofire from
`/Users/kevin/Library/Caches/CocoaPods/Pods/Release/Alamofire/4.1.0-e266c` to `Pods/Alamofire`
-> Installing IQKeyboardManagerSwift (4.0.7)
> Copying IQKeyboardManagerSwift from
`/Users/kevin/Library/Caches/CocoaPods/Pods/Release/IQKeyboardManagerSwift/4.0.7-58bbc` to
`Pods/IQKeyboardManagerSwift`
-> Installing Kingfisher (3.2.1)
> Copying Kingfisher from
`/Users/kevin/Library/Caches/CocoaPods/Pods/Release/Kingfisher/3.2.1-64ef2` to `Pods/Kingfisher`
-> Installing ModelMapper (6.0.0)
> Copying ModelMapper from
`/Users/kevin/Library/Caches/CocoaPods/Pods/Release/ModelMapper/6.0.0-3596a` to `Pods/ModelMapper`
-> Installing SnapKit (3.0.2)
> Copying SnapKit from `/Users/kevin/Library/Caches/CocoaPods/Pods/Release/SnapKit/3.0.2-2e456` to
`Pods/SnapKit`
-> Installing SwiftyUserDefaults (3.0.0)
> Copying SwiftyUserDefaults from
`/Users/kevin/Library/Caches/CocoaPods/Pods/Release/SwiftyUserDefaults/3.0.0-0f1d4` to
`Pods/SwiftyUserDefaults`
- Running pre install hooks
Generating Pods project
- Creating Pods project
- Adding source files to Pods project
- Adding frameworks to Pods project
- Adding libraries to Pods project
- Adding resources to Pods project
- Linking headers
- Installing targets
- Installing target `Alamofire` iOS 8.0
- Generating Info.plist file at `Pods/Target Support Files/Alamofire/Info.plist`
- Generating module map file at `Pods/Target Support Files/Alamofire/Alamofire.modulemap`
- Generating umbrella header at `Pods/Target Support Files/Alamofire/Alamofire-umbrella.h`
- Installing target `IQKeyboardManagerSwift` iOS 8.0
- Generating Info.plist file at `Pods/Target Support Files/IQKeyboardManagerSwift/Info.plist`
- Generating module map file at `Pods/Target Support
Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift.modulemap`
- Generating umbrella header at `Pods/Target Support
Files/IQKeyboardManagerSwift/IQKeyboardManagerSwift-umbrella.h`
- Installing target `Kingfisher` iOS 8.0
- Generating Info.plist file at `Pods/Target Support Files/Kingfisher/Info.plist`
- Generating module map file at `Pods/Target Support Files/Kingfisher/Kingfisher.modulemap`
- Generating umbrella header at `Pods/Target Support Files/Kingfisher/Kingfisher-umbrella.h`
- Installing target `ModelMapper` iOS 8.0
- Generating Info.plist file at `Pods/Target Support Files/ModelMapper/Info.plist`
- Generating module map file at `Pods/Target Support Files/ModelMapper/ModelMapper.modulemap`
- Generating umbrella header at `Pods/Target Support Files/ModelMapper/ModelMapper-umbrella.h`
- Installing target `SnapKit` iOS 8.0
- Generating Info.plist file at `Pods/Target Support Files/SnapKit/Info.plist`
- Generating module map file at `Pods/Target Support Files/SnapKit/SnapKit.modulemap`
- Generating umbrella header at `Pods/Target Support Files/SnapKit/SnapKit-umbrella.h`
- Installing target `SwiftyUserDefaults` iOS 8.0
- Generating Info.plist file at `Pods/Target Support Files/SwiftyUserDefaults/Info.plist`
- Generating module map file at `Pods/Target Support
Files/SwiftyUserDefaults/SwiftyUserDefaults.modulemap`
- Generating umbrella header at `Pods/Target Support
Files/SwiftyUserDefaults/SwiftyUserDefaults-umbrella.h`
- Installing target `Pods-Lumberjack` iOS 9.0
- Generating Info.plist file at `Pods/Target Support Files/Pods-Lumberjack/Info.plist`
- Generating module map file at `Pods/Target Support
Files/Pods-Lumberjack/Pods-Lumberjack.modulemap`
- Generating umbrella header at `Pods/Target Support
Files/Pods-Lumberjack/Pods-Lumberjack-umbrella.h`
- Running post install hooks
- Writing Xcode project file to `Pods/Pods.xcodeproj`
- Generating deterministic UUIDs
[1] 1559 abort pod install --verbose
It was based off of this issue: https://github.com/CocoaPods/CocoaPods/issues/3680
Solved my issue by reinstalling cocoapods
http://stackoverflow.com/questions/30812777/cannot-install-cocoa-pods-after-uninstalling-results-in-error/30851030#30851030
I solved this issue by removing an old version of the nanaimo
gem: sudo gem uninstall nanaimo
(prompts to ask you which version you want to uninstall)
I had versions 0.2.2 and 0.2.3 installed, removed 0.2.2, and magically things started working again!
This happens to me now. [1] 18679 abort pod install. All help appreciated
I managed to solve the issue by updating the _xcodeproj_ gem:
gem install xcodeproj
The currently installed version is v1.4.2 (it was 1.3.3 before).
In general, seems like it's worthwhile to try to completely uninstall all versions of all cocoapods-related gems and then reinstall from scratch. That process ultimately yielded the solution for me.
Note that some gems used by cocoapods do not have cocoapods in the name, as was the situation for me with nanaimo
.
This got me a good start, though (link)
for i in $( gem list --local --no-version | grep cocoapods );
do
gem uninstall $i;
done
Removing everything like above did not help. What did, wierdly, was installing beta cocoa pods and uninstalling. Thanks for the help do!
Thank @blurkidi , that works!
@blurkidi - your the man!
I thought I'm going to throw my computer out the window at some point.
Wow, such an odd fix @doozMen, it worked for me as well. Thanks for sharing ❤️
The following command in terminal fixed my problem. As I was watching the console logs, it updated the cocoapod gem.
sudo gem update
Hope it helps.
Most helpful comment
I managed to solve the issue by updating the _xcodeproj_ gem:
gem install xcodeproj
The currently installed version is v1.4.2 (it was 1.3.3 before).