简体   繁体   中英

Swift and Xcode: How to Build and Run a GitHub repository of iOS Application?

I'm interested on Running this GitHub repository of an iOS Application: https://github.com/septadev/SEPTA-iOS I opened the iSEPTA.xcodeproj file on XCode from the iSEPTA folder, but I'm getting these Buildtime Errors . For example: No such module 'ReSwift' , and this is the window I get prompted when I select any of the yellow alerts, I'm not sure if I should perform these changes, yet.

Could it be some incomparability with my XCode and Swift versions? Please, help!!

This project uses Carthage as a dependency management system for using external dependencies.

You should install Carthage to your computer and then run carthage update from the terminal in the root directory of the project. This will instal the dependencies and will allow you to run the project.

Take a look at Cartfile : it indicates this repo is using Carthage package manager. Follow their instructions to install dependent libraries

This repository requires Carthage ( https://github.com/Carthage/Carthage ) - this is a dependency manager. You can install it using Homebrew ( https://brew.sh/ )

brew install carthage

then you have to run carthageBuild.sh script (which runs carthage update ):

./carthageBuild.sh

and then you have to open: Septa.xcworkspace file

This would be the correct solution if the project used Cocoapods. Since it uses Carthage, look to others answers unless you are referencing this answer to a similar issue.

You need to use Cocoapods to integrate the pods attached to the project. Often times projects will not come with them precompiled. Either you opened the blue project file with the *.xcodeproj extension instead of the white project file with the *.xcworkspace extension.... or you don't have the pods installed at all. In which case read below.

Instructions as follows:

  1. cd to project directory
  2. Install Cocoapods
    • sudo gem install cocoapods
  3. Ensure the you have the given pods in your repo collection for install
    • pod repo update
  4. Install the pods
    • pod install
  5. Validate Project Settings
    • This is necessary until cocoapods v1.6 release (beta is out). 在此处输入图片说明
  6. Open the white project file with the *.xcworkspace extension

After those steps are complete, the project should run normally.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM