Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.44 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.44 KB

oauth module for Trigger.io

This repository holds everything required to build the oauth Trigger.io module.

For more information about working on Trigger.io native modules, see the documentation.

Building AppAuth-iOS static library

git clone https://github.com/openid/AppAuth-iOS.git
DESTPATH=~/Projects/modules/trigger.io-oauth.git/inspector/ios-inspector/ForgeModule
CONF=Debug

rm -rf build

# Compile Framework
xcodebuild -configuration $CONF -target AppAuth-iOS ARCHS="arm64"
xcodebuild -configuration $CONF -target AppAuth-iOS ARCHS="x86_64" -sdk iphonesimulator
xcodebuild -configuration $CONF -target AppAuth_iOS ARCHS="arm64"
xcodebuild -configuration $CONF -target AppAuth_iOS ARCHS="x86_64" -sdk iphonesimulator

# Copy Framework
rm -rf $DESTPATH/AppAuth.framework
cp -r build/$CONF-iphoneos/AppAuth.framework $DESTPATH/AppAuth.framework

# Create Fat Binaries
lipo -create -output $DESTPATH/libAppAuth-iOS.a \
     ./build/$CONF-iphoneos/libAppAuth-iOS.a \
     ./build/$CONF-iphonesimulator/libAppAuth-iOS.a

lipo -create -output $DESTPATH/AppAuth.framework/AppAuth \
     ./build/$CONF-iphoneos/AppAuth.framework/AppAuth \
     ./build/$CONF-iphonesimulator/AppAuth.framework/AppAuth

References