Skip to content

Commit 7034c22

Browse files
authored
Add a framework search path for Carthage (#189)
* Add a framework search path for Carthage * Update docs for Carthage
1 parent 9f41f7f commit 7034c22

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ AppAuth supports three options for dependency management.
221221

222222
github "openid/AppAuth-iOS" "master"
223223

224-
Then run `carthage bootstrap`.
224+
Then run `carthage update --platform iOS`.
225+
226+
Drag and drop `AppAuth.framework` from `ios/Carthage/Build/iOS` under `Frameworks` in `Xcode`.
227+
228+
Add a copy files build step for `AppAuth.framework`: open Build Phases on Xcode, add a new "Cope Files" phase, choose "Frameworks" as destination, add `AppAuth.framework` and ensure "Code Sign on Copy" is checked.
225229

226230
3. **Static Library**
227231

ios/RNAppAuth.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
58B511F01A9E6C8500147676 /* Debug */ = {
208208
isa = XCBuildConfiguration;
209209
buildSettings = {
210+
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../../../ios/Carthage/build/iOS";
210211
HEADER_SEARCH_PATHS = (
211212
"$(inherited)",
212213
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
@@ -225,6 +226,7 @@
225226
58B511F11A9E6C8500147676 /* Release */ = {
226227
isa = XCBuildConfiguration;
227228
buildSettings = {
229+
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../../../ios/Carthage/build/iOS";
228230
HEADER_SEARCH_PATHS = (
229231
"$(inherited)",
230232
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,

0 commit comments

Comments
 (0)