AssistantKit | Easy way to detect iOS device properties | iOS library
kandi X-RAY | AssistantKit Summary
kandi X-RAY | AssistantKit Summary
Easy way to detect device environment:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AssistantKit
AssistantKit Key Features
AssistantKit Examples and Code Snippets
Community Discussions
Trending Discussions on AssistantKit
QUESTION
I'm working on a project which was initially started in Xcode 8.3 and Swift 3.2, after release of Xcode 9(stable version) I converted my project from Swift 3.2 to Swift 4.0 using inbuilt option in Xcode 9. it also converted pods like Alamofire, SwiftyJson and more. I've also updated all pods using pod update
command.
everything is running fine in simulator as well as on iPhone but when I try to archive project the archive process fails with error as below.Error Image1
Error Image2
I've tried all possible solutions like changing Swift Language Version, Optimization Level for both Target & Pods Build Settings but it didn't works.
I've also tried in my pod file.
ANSWER
Answered 2017-Oct-17 at 18:37I had similar type of issue. I was able to run my Xcode project with pods installed i.e Alamofire, SwiftyJson
etc. but every time I try to archive the process fails by showing above error. The cause of problem is with cocoapods.
Removing cocoapods completely and reinstalling it again solved my issue.
To remove cocoapods completely from MacOS:
1. Type gem list --local | grep cocoapods
in the terminal. You’ll see something like this in terminal:
cocoapods (1.3.1)
cocoapods-core (1.3.1)
cocoapods-deintegrate (1.0.1)
cocoapods-downloader (1.1.3)
cocoapods-plugins (1.0.0)
cocoapods-search (1.0.0)
cocoapods-stats (1.0.0)
cocoapods-trunk (1.3.0)
cocoapods-try (1.1.0)
- Now you need to remove each gem with below command one by one.
sudo gem uninstall cocoapods
sudo gem uninstall cocoapods-deintegrate
sudo gem uninstall cocoapods-downloader
- Also delete ~/.cocoapods to remove the cache of podspecs. this will remove old master repo.
rm -rf ~/.cocoapods/
- Remove pods from your Xcode project & delete Podfile. I also deleted my .xcworkspace.
pod deintegrate
rm Podfile
- Now after all of this reinstall cocoapods using:
sudo gem install cocoapods
pod setup --verbose
Add required pods to your project and try to archive.
Hope this will help.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AssistantKit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page