Skip to content

Commit

Permalink
Remove 'UIWebView' from the comment to make App Store happy.
Browse files Browse the repository at this point in the history
Update build.sh.
  • Loading branch information
touren committed May 16, 2020
1 parent baac2e3 commit ee9a81e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ NS_ASSUME_NONNULL_BEGIN
/**
* The permalink URL for this Tweet.
*
* Suitable for loading in a `UIWebView`, `WKWebView` or passing to Safari:
* Suitable for loading in a `WKWebView` or passing to Safari:
*
* `[[UIApplication sharedApplication] openURL:tweet.permalink];`
*/
Expand Down
2 changes: 1 addition & 1 deletion TwitterKit5.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "TwitterKit5"
s.version = "5.1.0"
s.version = "5.2.0"
s.summary = "Increase user engagement and app growth."
s.homepage = "https://github.com/touren/twitter-kit-ios"
s.documentation_url = "https://github.com/touren/twitter-kit-ios/wiki"
Expand Down
14 changes: 12 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ xcodebuild \
CONFIGURATION_BUILD_DIR=./iphonesimulator \
clean build

## From: https://developer.apple.com/library/archive/qa/qa1940/_index.html
# If code signing fails with the error "resource fork, Finder information, or similar detritus not allowed."
# e.g. /usr/bin/codesign --force --sign - --timestamp=none $(pwd)/TwitterCore/iphonesimulator/TwitterCore.framework
# Try:
# xattr -lr /Users/SWARM5/Work/twitter-kit-ios-master/TwitterKit/iphonesimulator/TwitterKit.framework
# xattr -cr /Users/SWARM5/Work/twitter-kit-ios-master/TwitterKit/iphonesimulator/TwitterKit.framework

## Build TwitterKit.framework - armv7, arm64
xcodebuild \
-project TwitterKit/TwitterKit.xcodeproj \
Expand All @@ -28,6 +35,9 @@ lipo -create -output iOS/TwitterKit.framework/TwitterKit TwitterKit/iphoneos/Twi
lipo -archs iOS/TwitterKit.framework/TwitterKit

## Zip them into TwitterKit.zip
rm TwitterKit.zip
zip -r TwitterKit.zip iOS/*
ZIP_FILE=TwitterKit.zip
if test -f "$ZIP_FILE"; then
rm "$ZIP_FILE"
fi
zip -r "$ZIP_FILE" iOS/*
rm -rf iOS

0 comments on commit ee9a81e

Please sign in to comment.