Skip to content

Commit

Permalink
Add a framework search path for Carthage (#189)
Browse files Browse the repository at this point in the history
* Add a framework search path for Carthage

* Update docs for Carthage
  • Loading branch information
kadikraman committed Oct 11, 2018
1 parent 9f41f7f commit 7034c22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -221,7 +221,11 @@ AppAuth supports three options for dependency management.

github "openid/AppAuth-iOS" "master"

Then run `carthage bootstrap`.
Then run `carthage update --platform iOS`.

Drag and drop `AppAuth.framework` from `ios/Carthage/Build/iOS` under `Frameworks` in `Xcode`.

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.

3. **Static Library**

Expand Down
2 changes: 2 additions & 0 deletions ios/RNAppAuth.xcodeproj/project.pbxproj
Expand Up @@ -207,6 +207,7 @@
58B511F01A9E6C8500147676 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../../../ios/Carthage/build/iOS";
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
Expand All @@ -225,6 +226,7 @@
58B511F11A9E6C8500147676 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../../../ios/Carthage/build/iOS";
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
Expand Down

0 comments on commit 7034c22

Please sign in to comment.