diff --git a/Demo Swift Carthage/Demo Swift Carthage.xcodeproj/project.pbxproj b/Demo Swift Carthage/Demo Swift Carthage.xcodeproj/project.pbxproj index e3838ff..427fdf4 100644 --- a/Demo Swift Carthage/Demo Swift Carthage.xcodeproj/project.pbxproj +++ b/Demo Swift Carthage/Demo Swift Carthage.xcodeproj/project.pbxproj @@ -14,6 +14,7 @@ 5D80A2311F74DDFA00299BD5 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5D80A22F1F74DDFA00299BD5 /* LaunchScreen.storyboard */; }; 5D80A23C1F74DDFB00299BD5 /* Demo_Swift_CarthageTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D80A23B1F74DDFB00299BD5 /* Demo_Swift_CarthageTests.swift */; }; 5D80A2471F74DDFB00299BD5 /* Demo_Swift_CarthageUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D80A2461F74DDFB00299BD5 /* Demo_Swift_CarthageUITests.swift */; }; + 5DDFF7891F74E8CD006E4FAE /* Prelude.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DDFF7881F74E8CD006E4FAE /* Prelude.framework */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -47,6 +48,7 @@ 5D80A2421F74DDFB00299BD5 /* Demo Swift CarthageUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Demo Swift CarthageUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 5D80A2461F74DDFB00299BD5 /* Demo_Swift_CarthageUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Demo_Swift_CarthageUITests.swift; sourceTree = ""; }; 5D80A2481F74DDFB00299BD5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 5DDFF7881F74E8CD006E4FAE /* Prelude.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Prelude.framework; path = Carthage/Build/iOS/Prelude.framework; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -54,6 +56,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 5DDFF7891F74E8CD006E4FAE /* Prelude.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -81,6 +84,7 @@ 5D80A23A1F74DDFB00299BD5 /* Demo Swift CarthageTests */, 5D80A2451F74DDFB00299BD5 /* Demo Swift CarthageUITests */, 5D80A2241F74DDFA00299BD5 /* Products */, + 5DDFF7871F74E8CD006E4FAE /* Frameworks */, ); sourceTree = ""; }; @@ -125,6 +129,14 @@ path = "Demo Swift CarthageUITests"; sourceTree = ""; }; + 5DDFF7871F74E8CD006E4FAE /* Frameworks */ = { + isa = PBXGroup; + children = ( + 5DDFF7881F74E8CD006E4FAE /* Prelude.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -434,6 +446,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEVELOPMENT_TEAM = G863BF9CVX; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Carthage/Build/iOS", + ); INFOPLIST_FILE = "Demo Swift Carthage/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "com.joelparkerhenderson.Demo-Swift-Carthage"; @@ -447,6 +463,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; DEVELOPMENT_TEAM = G863BF9CVX; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Carthage/Build/iOS", + ); INFOPLIST_FILE = "Demo Swift Carthage/Info.plist"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = "com.joelparkerhenderson.Demo-Swift-Carthage"; @@ -528,6 +548,7 @@ 5D80A24D1F74DDFB00299BD5 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; 5D80A24E1F74DDFB00299BD5 /* Build configuration list for PBXNativeTarget "Demo Swift CarthageTests" */ = { isa = XCConfigurationList; @@ -536,6 +557,7 @@ 5D80A2501F74DDFB00299BD5 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; 5D80A2511F74DDFB00299BD5 /* Build configuration list for PBXNativeTarget "Demo Swift CarthageUITests" */ = { isa = XCConfigurationList; @@ -544,6 +566,7 @@ 5D80A2531F74DDFB00299BD5 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/README.md b/README.md index 3ef5ff7..9912d28 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,35 @@ To use this project: github "robrix/Prelude" "2.0.0" -## Create Run Script +## Link the framework + +1. Go to the Xcode project "General" area. + +1. Scroll down the section "Linked Frameworks and Libraries", with the text that says "Add frameworks & libraries here". + +1. Tap the "+" icon. + + * A dialog opens that says "Choose frameworks and libraries to add". + + * Tap the button "Add Other..." + +1. Choose the framework. + + * A file chooser opens. + + * Navigate up a folder, and you see the "Carthage" folder. + + * Open the folder "Carthage", then the folder "Build", then the folder "iOS". + + * Tap the file "Prelude.framework" to highlight it. + + * Tap "Open" + +1. The section "Linked Frameworks and Libraries" now shows "Prelude.framework". + + + +## Create the Run Script 1. Go to the Xcode project "Build Phases" settings area. @@ -161,7 +189,7 @@ To use this project: * Set the "Input Files" to `$(SRCROOT)/Carthage/Build/iOS/Prelude.framework` -## How to run +## Run 1. Run the project.