/CarthagePlayground

Swift Playgrounds use 3rd framework with Carthage

Primary LanguageSwiftMIT LicenseMIT

CarthagePlayground

Swift Playgrounds use 3rd framework with Carthage

git clone & run

carthage update --platform ios

create step

  1. create new project "Test"

    XCode: File > New > Project > Cross-platform > Empty > Named > "Test"

  2. setting Carthage

    command: at project directory

    echo github \"ReactiveX/RxSwift\" > Cartfile
    carthage update --platform iOS
  3. create Playground "MyTest.playground"

    XCode: File > New > Playground > Blank > Named > Select Project Directory

    XCode: File > Add File to "Test" > Select "MyTest.playground"

  4. create workspace "Test.xcworkspace"

    XCode: Click "Test"

    XCode: File > Save As Workspace > Named > Select Project Directory

    Close XCode

    Open "Test.xcworkspace"

  5. copy framework

    XCode: File > New > Target > Cross-platform > Aggregate > Named > "TestAggregate"

    TARGETS > TestAggregate > Build Phases > + > New Run Script Phase > input

    cp -rv "${SRCROOT}/Carthage/Build/iOS/" "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"
  6. build the project ⌘B

reference