Skip to content

Commit

Permalink
fix(ios): Fix iOS ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES setting issue…
Browse files Browse the repository at this point in the history
… that may cause AppStore review to fail
  • Loading branch information
EingShaw committed May 18, 2021
1 parent afaa259 commit 94732a3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Changelog
## 1.1.6

### BugFix

* 修复 iOS ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES 设置问题可能导致的 AppStore 审核无法通过

## 1.1.5

Expand Down
4 changes: 2 additions & 2 deletions Documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ TapSDK 会给iOS工程自动添加以下配置
proj.SetBuildProperty(target, "SWIFT_VERSION", "5.0");
proj.SetBuildProperty(target, "CLANG_ENABLE_MODULES", "YES");
proj.SetBuildProperty(unityFrameworkTarget, "ENABLE_BITCODE", "NO"); //bitcode NO
proj.SetBuildProperty(unityFrameworkTarget,"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES","YES");
proj.SetBuildProperty(unityFrameworkTarget,"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES","NO");
proj.SetBuildProperty(unityFrameworkTarget, "SWIFT_VERSION", "5.0");
proj.SetBuildProperty(unityFrameworkTarget, "CLANG_ENABLE_MODULES", "YES");
//所需要的Framework
Expand Down Expand Up @@ -131,7 +131,7 @@ TapSDK 会给iOS工程自动添加以下配置
//从UPM缓存目录中拷贝
string remotePackagePath = TDSFileHelper.FilterFile(parentFolder + "/Library/PackageCache/","com.tds.sdk@");
//从本地目录中拷贝
string localPacckagePath = TDSFileHelper.FilterFile(parentFolder,"TapSDK");
string localPackagePath = TDSFileHelper.FilterFile(parentFolder,"TapSDK");
```

iOS资源文件Copy到XCode工程目录下的 **TDSResource** 文件夹中,再添加依赖到指定Target。
Expand Down
6 changes: 3 additions & 3 deletions Script/Editor/TDSIOSBuildPostProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static void OnPostprocessBuild(BuildTarget BuildTarget, string path)
proj.SetBuildProperty(target, "SWIFT_VERSION", "5.0");
proj.SetBuildProperty(target, "CLANG_ENABLE_MODULES", "YES");
proj.SetBuildProperty(unityFrameworkTarget, "ENABLE_BITCODE", "NO"); //bitcode NO
proj.SetBuildProperty(unityFrameworkTarget,"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES","YES");
proj.SetBuildProperty(unityFrameworkTarget,"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES","NO");
proj.SetBuildProperty(unityFrameworkTarget, "SWIFT_VERSION", "5.0");
proj.SetBuildProperty(unityFrameworkTarget, "CLANG_ENABLE_MODULES", "YES");
// add extra framework(s)
Expand Down Expand Up @@ -94,9 +94,9 @@ public static void OnPostprocessBuild(BuildTarget BuildTarget, string path)

string remotePackagePath = TDSFileHelper.FilterFile(parentFolder + "/Library/PackageCache/","com.tds.sdk@");

string localPacckagePath = TDSFileHelper.FilterFile(parentFolder,"TapSDK");
string localPackagePath = TDSFileHelper.FilterFile(parentFolder,"TapSDK");

string tdsResourcePath = remotePackagePath !=null? remotePackagePath + "/Plugins/iOS/Resource" : localPacckagePath + "/Plugins/iOS/Resource";
string tdsResourcePath = remotePackagePath !=null? remotePackagePath + "/Plugins/iOS/Resource" : localPackagePath + "/Plugins/iOS/Resource";

if(Directory.Exists(tdsResourcePath)){
TDSFileHelper.CopyAndReplaceDirectory(tdsResourcePath, resourcePath);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "com.tds.sdk",
"displayName": "Tap SDK",
"description": "TapTap Develop Service!",
"version": "1.1.5",
"version": "1.1.6",
"unity": "2020.1",
"license": "MIT"
}

0 comments on commit 94732a3

Please sign in to comment.