Skip to content

Commit 1662b0e

Browse files
committed
Fixed startup on real devices
1 parent d929e86 commit 1662b0e

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

todoapp.xcodeproj/project.pbxproj

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,28 @@
1414
EC712AB726F6964C0066E483 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EC712AB626F6964C0066E483 /* Preview Assets.xcassets */; };
1515
EC8A1FB626FE752000054F1C /* native-lib.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EC8A1FB426FE752000054F1C /* native-lib.cpp */; };
1616
EC8A1FBC26FF226000054F1C /* Bridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC8A1FBB26FF226000054F1C /* Bridge.swift */; };
17-
EC8A1FC72702233000054F1C /* ZIPFoundation.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = EC8A1FC62702233000054F1C /* ZIPFoundation.xcframework */; };
1817
EC8A1FC92702328F00054F1C /* app.zip in Resources */ = {isa = PBXBuildFile; fileRef = EC8A1FC82702328F00054F1C /* app.zip */; };
1918
EC8A1FD12704E9AB00054F1C /* WebView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC8A1FD02704E9AB00054F1C /* WebView.swift */; };
2019
EC90CFEF273D772900C9A3F3 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = EC90CFEE273D772900C9A3F3 /* README.md */; };
20+
ECA856FF28DC70CA00CF6488 /* ZIPFoundation.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = EC8A1FC62702233000054F1C /* ZIPFoundation.xcframework */; };
21+
ECA8570028DC70CA00CF6488 /* ZIPFoundation.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = EC8A1FC62702233000054F1C /* ZIPFoundation.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
2122
ECB3384728B396F7001E8DC7 /* liberlang.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = ECB3384628B396F7001E8DC7 /* liberlang.xcframework */; };
2223
/* End PBXBuildFile section */
2324

25+
/* Begin PBXCopyFilesBuildPhase section */
26+
ECA8570128DC70CA00CF6488 /* Embed Frameworks */ = {
27+
isa = PBXCopyFilesBuildPhase;
28+
buildActionMask = 2147483647;
29+
dstPath = "";
30+
dstSubfolderSpec = 10;
31+
files = (
32+
ECA8570028DC70CA00CF6488 /* ZIPFoundation.xcframework in Embed Frameworks */,
33+
);
34+
name = "Embed Frameworks";
35+
runOnlyForDeploymentPostprocessing = 0;
36+
};
37+
/* End PBXCopyFilesBuildPhase section */
38+
2439
/* Begin PBXFileReference section */
2540
EC01B27128D9F1000067BAEE /* WebViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = WebViewController.swift; sourceTree = "<group>"; };
2641
EC712AAC26F6964C0066E483 /* todoapp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = todoapp.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -45,8 +60,8 @@
4560
isa = PBXFrameworksBuildPhase;
4661
buildActionMask = 2147483647;
4762
files = (
63+
ECA856FF28DC70CA00CF6488 /* ZIPFoundation.xcframework in Frameworks */,
4864
ECB3384728B396F7001E8DC7 /* liberlang.xcframework in Frameworks */,
49-
EC8A1FC72702233000054F1C /* ZIPFoundation.xcframework in Frameworks */,
5065
);
5166
runOnlyForDeploymentPostprocessing = 0;
5267
};
@@ -110,6 +125,7 @@
110125
EC712AA926F6964C0066E483 /* Frameworks */,
111126
EC8A1FD6270B4EF900054F1C /* ShellScript */,
112127
EC712AAA26F6964C0066E483 /* Resources */,
128+
ECA8570128DC70CA00CF6488 /* Embed Frameworks */,
113129
);
114130
buildRules = (
115131
);
@@ -330,6 +346,7 @@
330346
CLANG_ENABLE_MODULES = YES;
331347
CODE_SIGN_STYLE = Automatic;
332348
DEVELOPMENT_ASSET_PATHS = "\"todoapp/Preview Content\"";
349+
DEVELOPMENT_TEAM = 4PN2DP4655;
333350
ENABLE_PREVIEWS = YES;
334351
INFOPLIST_FILE = todoapp/Info.plist;
335352
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
@@ -354,6 +371,7 @@
354371
CLANG_ENABLE_MODULES = YES;
355372
CODE_SIGN_STYLE = Automatic;
356373
DEVELOPMENT_ASSET_PATHS = "\"todoapp/Preview Content\"";
374+
DEVELOPMENT_TEAM = 4PN2DP4655;
357375
ENABLE_PREVIEWS = YES;
358376
INFOPLIST_FILE = todoapp/Info.plist;
359377
IPHONEOS_DEPLOYMENT_TARGET = 14.0;

todoapp/Bridge.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Bridge {
9292

9393
func setEnv(name: String, value: String) {
9494
print("setenv \(name) \(value)")
95-
setenv(name, value, 0)
95+
setenv(name, value, 1)
9696
}
9797

9898
func zipFile() -> URL {

0 commit comments

Comments
 (0)