carthage
Using Carthage and CocoaPods in the same project
The main issue you will run into is that CocoaPods and Carthage are not aware of each other. This means that if a dependency managed by CocoaPods and a dependency by Carthage share a common dependency, conflicts may arise. Carthage requires that you manually add frameworks to a project which means that you can probably … Read more
Uninstall/remove Carthage from iOS/Xcode project?
To completely remove Carthage and its frameworks from project: In Finder, delete these files and directory from your project’s root folder: Cartfile Cartfile.resolved Carthage/ In Xcode, delete the framework item in the project navigator. In Xcode > project Target > Build Phases tab (illustration), delete the carthage copy-frameworks Run Script (if you had previously added … Read more
Where is the Run Script and Build Phase in Xcode?
It is still there. Make sure you click everywhere indicated in red in the image below.
what’s the purpose of “–no-use-binaries” in carthage
Sometimes the prebuilt frameworks are corrupted in the dependencies’ project, so you need to build them locally. Also, those prebuilt frameworks don’t support step-by-step debugging, so unless you build them locally, you won’t be able to use this feature with your dependencies. Using –no-use-binaries compiles the projects locally, using your compiler. Executing the update command might occasionally produce … Read more
Error of “error: could not lock config file .git/config: Permission denied” occurs while installing Carthage
Check for the permissions on these files. ls -l /usr/local/Homebrew/.git/FETCH_HEAD ls -l /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask/.git/FETCH_HEAD ls -l /usr/local/Homebrew/Library/Taps/dart-lang/homebrew-dart/.git/FETCH_HEAD ls -l /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/.git/FETCH_HEAD If you don’t have the permissions, run sudo chown -R $(whoami):admin /usr/local/* && sudo chmod -R g+rwx /usr/local/* In High Sierra and above, Run this command instead: sudo chown -R $(whoami) $(brew –prefix)/* You can also … Read more
How to correctly create carthage cartfile?
From the command line, navigate to your project directory. touch Cartfile Now the Cartfile is created, make it executable with: chmod +x [YourDirectory/Cartfile] You can open it with any text editor. Then insert whatever library and source you want (Example: github “SwiftyJSON/SwiftyJSON” >= 2.1.2)
umbrella header for module ‘myFramework’ does not include header ‘otherFramework.h’
I recently ran into same issue. Apparently I had header file set as public in target membership, but it was not exposed in umbrella header. Fixed issue by making header file with project access instead of public.
How to clear Carthage cache?
The solution from here helped me, we should call it like: rm -rf ~/Library/Caches/org.carthage.CarthageKit