Skip to content

Commit

Permalink
Merge pull request #9 from samtheson/build/add-script-phase-for-compa…
Browse files Browse the repository at this point in the history
…tibility-header

Add script phase for compatibility header visibility
  • Loading branch information
johnmillz authored Feb 13, 2020
2 parents 5938568 + 2426f64 commit f7f214f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $ brew install carthage
To integrate Yoti into your Xcode project using Carthage, specify it in your `Cartfile`:

```
github "getyoti/ios-sdk-button" ~> 2.0
github "getyoti/ios-sdk-button" ~> 2.3
```

This will allow you to type `carthage update ios-sdk-button` in your Terminal to fetch and build the latest version of the framework.
Expand All @@ -62,7 +62,7 @@ $ sudo gem install cocoapods
To integrate Yoti into your Xcode project using Cocoapods, specify it in your `Podfile`:

```
pod 'yoti-sdk' ~> 2.0
pod 'yoti-sdk' ~> 2.3
```

Tip: CocoaPods provides a `pod init` command to create a Podfile with smart defaults. You should use it.
Expand Down
2 changes: 1 addition & 1 deletion YotiButtonSDK/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.1</string>
<string>2.3</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
9 changes: 8 additions & 1 deletion yoti-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "yoti-sdk"
s.version = "2.2"
s.version = "2.3"
s.summary = "A button SDK that uses Yoti app to complete the share"

# This description is used to generate tags and improve search results.
Expand Down Expand Up @@ -135,4 +135,11 @@ Pod::Spec.new do |s|
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
# s.dependency "JSONKit", "~> 1.4"

# ――― Script Phases ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
s.script_phase = {
:name => 'Ensure generated compatibility header is visible',
:script => 'COMPATIBILITY_HEADER_PATH="${BUILT_PRODUCTS_DIR}/Swift Compatibility Header/${PRODUCT_MODULE_NAME}-Swift.h" && if [ -s "${COMPATIBILITY_HEADER_PATH}" ]; then ditto "${COMPATIBILITY_HEADER_PATH}" "${BUILT_PRODUCTS_DIR}" && ditto "${COMPATIBILITY_HEADER_PATH}" "${PODS_ROOT}/Headers/Public/${PRODUCT_MODULE_NAME}/${PRODUCT_MODULE_NAME}-Swift.h" && ditto "${COMPATIBILITY_HEADER_PATH}" "${PODS_ROOT}/Target Support Files/${PRODUCT_MODULE_NAME}/${PRODUCT_MODULE_NAME}-Swift.h"; fi;',
:execution_position => :after_compile
}

end

0 comments on commit f7f214f

Please sign in to comment.