Skip to content

Commit 56f706a

Browse files
author
joser
committed
升级到Swift5版本 修复一些BUG 增加基础语言可以设置 新增Example
1 parent 7b20426 commit 56f706a

63 files changed

Lines changed: 2075 additions & 356 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 356 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,356 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 50;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
5DCC0D1D25F78DD400F3074C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC0D1C25F78DD400F3074C /* AppDelegate.m */; };
11+
5DCC0D2025F78DD400F3074C /* SceneDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC0D1F25F78DD400F3074C /* SceneDelegate.m */; };
12+
5DCC0D2325F78DD400F3074C /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC0D2225F78DD400F3074C /* ViewController.m */; };
13+
5DCC0D2625F78DD400F3074C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5DCC0D2425F78DD400F3074C /* Main.storyboard */; };
14+
5DCC0D2825F78DD600F3074C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5DCC0D2725F78DD600F3074C /* Assets.xcassets */; };
15+
5DCC0D2B25F78DD600F3074C /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5DCC0D2925F78DD600F3074C /* LaunchScreen.storyboard */; };
16+
5DCC0D2E25F78DD600F3074C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5DCC0D2D25F78DD600F3074C /* main.m */; };
17+
/* End PBXBuildFile section */
18+
19+
/* Begin PBXFileReference section */
20+
5DCC0D1825F78DD400F3074C /* OC-Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "OC-Example.app"; sourceTree = BUILT_PRODUCTS_DIR; };
21+
5DCC0D1B25F78DD400F3074C /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
22+
5DCC0D1C25F78DD400F3074C /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
23+
5DCC0D1E25F78DD400F3074C /* SceneDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SceneDelegate.h; sourceTree = "<group>"; };
24+
5DCC0D1F25F78DD400F3074C /* SceneDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SceneDelegate.m; sourceTree = "<group>"; };
25+
5DCC0D2125F78DD400F3074C /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
26+
5DCC0D2225F78DD400F3074C /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
27+
5DCC0D2525F78DD400F3074C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
28+
5DCC0D2725F78DD600F3074C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
29+
5DCC0D2A25F78DD600F3074C /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
30+
5DCC0D2C25F78DD600F3074C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
31+
5DCC0D2D25F78DD600F3074C /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
32+
5DCC0D3525F78E2400F3074C /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Main.strings"; sourceTree = "<group>"; };
33+
5DCC0D3625F78E2400F3074C /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
34+
/* End PBXFileReference section */
35+
36+
/* Begin PBXFrameworksBuildPhase section */
37+
5DCC0D1525F78DD400F3074C /* Frameworks */ = {
38+
isa = PBXFrameworksBuildPhase;
39+
buildActionMask = 2147483647;
40+
files = (
41+
);
42+
runOnlyForDeploymentPostprocessing = 0;
43+
};
44+
/* End PBXFrameworksBuildPhase section */
45+
46+
/* Begin PBXGroup section */
47+
5DCC0D0F25F78DD400F3074C = {
48+
isa = PBXGroup;
49+
children = (
50+
5DCC0D1A25F78DD400F3074C /* OC-Example */,
51+
5DCC0D1925F78DD400F3074C /* Products */,
52+
);
53+
sourceTree = "<group>";
54+
};
55+
5DCC0D1925F78DD400F3074C /* Products */ = {
56+
isa = PBXGroup;
57+
children = (
58+
5DCC0D1825F78DD400F3074C /* OC-Example.app */,
59+
);
60+
name = Products;
61+
sourceTree = "<group>";
62+
};
63+
5DCC0D1A25F78DD400F3074C /* OC-Example */ = {
64+
isa = PBXGroup;
65+
children = (
66+
5DCC0D1B25F78DD400F3074C /* AppDelegate.h */,
67+
5DCC0D1C25F78DD400F3074C /* AppDelegate.m */,
68+
5DCC0D1E25F78DD400F3074C /* SceneDelegate.h */,
69+
5DCC0D1F25F78DD400F3074C /* SceneDelegate.m */,
70+
5DCC0D2125F78DD400F3074C /* ViewController.h */,
71+
5DCC0D2225F78DD400F3074C /* ViewController.m */,
72+
5DCC0D2425F78DD400F3074C /* Main.storyboard */,
73+
5DCC0D2725F78DD600F3074C /* Assets.xcassets */,
74+
5DCC0D2925F78DD600F3074C /* LaunchScreen.storyboard */,
75+
5DCC0D2C25F78DD600F3074C /* Info.plist */,
76+
5DCC0D2D25F78DD600F3074C /* main.m */,
77+
);
78+
path = "OC-Example";
79+
sourceTree = "<group>";
80+
};
81+
/* End PBXGroup section */
82+
83+
/* Begin PBXNativeTarget section */
84+
5DCC0D1725F78DD400F3074C /* OC-Example */ = {
85+
isa = PBXNativeTarget;
86+
buildConfigurationList = 5DCC0D3125F78DD600F3074C /* Build configuration list for PBXNativeTarget "OC-Example" */;
87+
buildPhases = (
88+
5DCC0D1425F78DD400F3074C /* Sources */,
89+
5DCC0D1525F78DD400F3074C /* Frameworks */,
90+
5DCC0D1625F78DD400F3074C /* Resources */,
91+
);
92+
buildRules = (
93+
);
94+
dependencies = (
95+
);
96+
name = "OC-Example";
97+
productName = "OC-Example";
98+
productReference = 5DCC0D1825F78DD400F3074C /* OC-Example.app */;
99+
productType = "com.apple.product-type.application";
100+
};
101+
/* End PBXNativeTarget section */
102+
103+
/* Begin PBXProject section */
104+
5DCC0D1025F78DD400F3074C /* Project object */ = {
105+
isa = PBXProject;
106+
attributes = {
107+
LastUpgradeCheck = 1240;
108+
TargetAttributes = {
109+
5DCC0D1725F78DD400F3074C = {
110+
CreatedOnToolsVersion = 12.4;
111+
};
112+
};
113+
};
114+
buildConfigurationList = 5DCC0D1325F78DD400F3074C /* Build configuration list for PBXProject "OC-Example" */;
115+
compatibilityVersion = "Xcode 9.3";
116+
developmentRegion = en;
117+
hasScannedForEncodings = 0;
118+
knownRegions = (
119+
en,
120+
Base,
121+
"zh-Hans",
122+
);
123+
mainGroup = 5DCC0D0F25F78DD400F3074C;
124+
productRefGroup = 5DCC0D1925F78DD400F3074C /* Products */;
125+
projectDirPath = "";
126+
projectRoot = "";
127+
targets = (
128+
5DCC0D1725F78DD400F3074C /* OC-Example */,
129+
);
130+
};
131+
/* End PBXProject section */
132+
133+
/* Begin PBXResourcesBuildPhase section */
134+
5DCC0D1625F78DD400F3074C /* Resources */ = {
135+
isa = PBXResourcesBuildPhase;
136+
buildActionMask = 2147483647;
137+
files = (
138+
5DCC0D2B25F78DD600F3074C /* LaunchScreen.storyboard in Resources */,
139+
5DCC0D2825F78DD600F3074C /* Assets.xcassets in Resources */,
140+
5DCC0D2625F78DD400F3074C /* Main.storyboard in Resources */,
141+
);
142+
runOnlyForDeploymentPostprocessing = 0;
143+
};
144+
/* End PBXResourcesBuildPhase section */
145+
146+
/* Begin PBXSourcesBuildPhase section */
147+
5DCC0D1425F78DD400F3074C /* Sources */ = {
148+
isa = PBXSourcesBuildPhase;
149+
buildActionMask = 2147483647;
150+
files = (
151+
5DCC0D2325F78DD400F3074C /* ViewController.m in Sources */,
152+
5DCC0D1D25F78DD400F3074C /* AppDelegate.m in Sources */,
153+
5DCC0D2E25F78DD600F3074C /* main.m in Sources */,
154+
5DCC0D2025F78DD400F3074C /* SceneDelegate.m in Sources */,
155+
);
156+
runOnlyForDeploymentPostprocessing = 0;
157+
};
158+
/* End PBXSourcesBuildPhase section */
159+
160+
/* Begin PBXVariantGroup section */
161+
5DCC0D2425F78DD400F3074C /* Main.storyboard */ = {
162+
isa = PBXVariantGroup;
163+
children = (
164+
5DCC0D2525F78DD400F3074C /* Base */,
165+
5DCC0D3525F78E2400F3074C /* zh-Hans */,
166+
);
167+
name = Main.storyboard;
168+
sourceTree = "<group>";
169+
};
170+
5DCC0D2925F78DD600F3074C /* LaunchScreen.storyboard */ = {
171+
isa = PBXVariantGroup;
172+
children = (
173+
5DCC0D2A25F78DD600F3074C /* Base */,
174+
5DCC0D3625F78E2400F3074C /* zh-Hans */,
175+
);
176+
name = LaunchScreen.storyboard;
177+
sourceTree = "<group>";
178+
};
179+
/* End PBXVariantGroup section */
180+
181+
/* Begin XCBuildConfiguration section */
182+
5DCC0D2F25F78DD600F3074C /* Debug */ = {
183+
isa = XCBuildConfiguration;
184+
buildSettings = {
185+
ALWAYS_SEARCH_USER_PATHS = NO;
186+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
187+
CLANG_ANALYZER_NONNULL = YES;
188+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
189+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
190+
CLANG_CXX_LIBRARY = "libc++";
191+
CLANG_ENABLE_MODULES = YES;
192+
CLANG_ENABLE_OBJC_ARC = YES;
193+
CLANG_ENABLE_OBJC_WEAK = YES;
194+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
195+
CLANG_WARN_BOOL_CONVERSION = YES;
196+
CLANG_WARN_COMMA = YES;
197+
CLANG_WARN_CONSTANT_CONVERSION = YES;
198+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
199+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
200+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
201+
CLANG_WARN_EMPTY_BODY = YES;
202+
CLANG_WARN_ENUM_CONVERSION = YES;
203+
CLANG_WARN_INFINITE_RECURSION = YES;
204+
CLANG_WARN_INT_CONVERSION = YES;
205+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
206+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
207+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
208+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
209+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
210+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
211+
CLANG_WARN_STRICT_PROTOTYPES = YES;
212+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
213+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
214+
CLANG_WARN_UNREACHABLE_CODE = YES;
215+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
216+
COPY_PHASE_STRIP = NO;
217+
DEBUG_INFORMATION_FORMAT = dwarf;
218+
ENABLE_STRICT_OBJC_MSGSEND = YES;
219+
ENABLE_TESTABILITY = YES;
220+
GCC_C_LANGUAGE_STANDARD = gnu11;
221+
GCC_DYNAMIC_NO_PIC = NO;
222+
GCC_NO_COMMON_BLOCKS = YES;
223+
GCC_OPTIMIZATION_LEVEL = 0;
224+
GCC_PREPROCESSOR_DEFINITIONS = (
225+
"DEBUG=1",
226+
"$(inherited)",
227+
);
228+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
229+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
230+
GCC_WARN_UNDECLARED_SELECTOR = YES;
231+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
232+
GCC_WARN_UNUSED_FUNCTION = YES;
233+
GCC_WARN_UNUSED_VARIABLE = YES;
234+
IPHONEOS_DEPLOYMENT_TARGET = 14.4;
235+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
236+
MTL_FAST_MATH = YES;
237+
ONLY_ACTIVE_ARCH = YES;
238+
SDKROOT = iphoneos;
239+
};
240+
name = Debug;
241+
};
242+
5DCC0D3025F78DD600F3074C /* Release */ = {
243+
isa = XCBuildConfiguration;
244+
buildSettings = {
245+
ALWAYS_SEARCH_USER_PATHS = NO;
246+
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
247+
CLANG_ANALYZER_NONNULL = YES;
248+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
249+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
250+
CLANG_CXX_LIBRARY = "libc++";
251+
CLANG_ENABLE_MODULES = YES;
252+
CLANG_ENABLE_OBJC_ARC = YES;
253+
CLANG_ENABLE_OBJC_WEAK = YES;
254+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
255+
CLANG_WARN_BOOL_CONVERSION = YES;
256+
CLANG_WARN_COMMA = YES;
257+
CLANG_WARN_CONSTANT_CONVERSION = YES;
258+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
259+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
260+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
261+
CLANG_WARN_EMPTY_BODY = YES;
262+
CLANG_WARN_ENUM_CONVERSION = YES;
263+
CLANG_WARN_INFINITE_RECURSION = YES;
264+
CLANG_WARN_INT_CONVERSION = YES;
265+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
266+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
267+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
268+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
269+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
270+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
271+
CLANG_WARN_STRICT_PROTOTYPES = YES;
272+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
273+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
274+
CLANG_WARN_UNREACHABLE_CODE = YES;
275+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
276+
COPY_PHASE_STRIP = NO;
277+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
278+
ENABLE_NS_ASSERTIONS = NO;
279+
ENABLE_STRICT_OBJC_MSGSEND = YES;
280+
GCC_C_LANGUAGE_STANDARD = gnu11;
281+
GCC_NO_COMMON_BLOCKS = YES;
282+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
283+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
284+
GCC_WARN_UNDECLARED_SELECTOR = YES;
285+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
286+
GCC_WARN_UNUSED_FUNCTION = YES;
287+
GCC_WARN_UNUSED_VARIABLE = YES;
288+
IPHONEOS_DEPLOYMENT_TARGET = 14.4;
289+
MTL_ENABLE_DEBUG_INFO = NO;
290+
MTL_FAST_MATH = YES;
291+
SDKROOT = iphoneos;
292+
VALIDATE_PRODUCT = YES;
293+
};
294+
name = Release;
295+
};
296+
5DCC0D3225F78DD600F3074C /* Debug */ = {
297+
isa = XCBuildConfiguration;
298+
buildSettings = {
299+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
300+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
301+
CODE_SIGN_STYLE = Automatic;
302+
DEVELOPMENT_TEAM = VUX6YDJ89W;
303+
INFOPLIST_FILE = "OC-Example/Info.plist";
304+
LD_RUNPATH_SEARCH_PATHS = (
305+
"$(inherited)",
306+
"@executable_path/Frameworks",
307+
);
308+
PRODUCT_BUNDLE_IDENTIFIER = "com.pinealai.OC-Example";
309+
PRODUCT_NAME = "$(TARGET_NAME)";
310+
TARGETED_DEVICE_FAMILY = "1,2";
311+
};
312+
name = Debug;
313+
};
314+
5DCC0D3325F78DD600F3074C /* Release */ = {
315+
isa = XCBuildConfiguration;
316+
buildSettings = {
317+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
318+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
319+
CODE_SIGN_STYLE = Automatic;
320+
DEVELOPMENT_TEAM = VUX6YDJ89W;
321+
INFOPLIST_FILE = "OC-Example/Info.plist";
322+
LD_RUNPATH_SEARCH_PATHS = (
323+
"$(inherited)",
324+
"@executable_path/Frameworks",
325+
);
326+
PRODUCT_BUNDLE_IDENTIFIER = "com.pinealai.OC-Example";
327+
PRODUCT_NAME = "$(TARGET_NAME)";
328+
TARGETED_DEVICE_FAMILY = "1,2";
329+
};
330+
name = Release;
331+
};
332+
/* End XCBuildConfiguration section */
333+
334+
/* Begin XCConfigurationList section */
335+
5DCC0D1325F78DD400F3074C /* Build configuration list for PBXProject "OC-Example" */ = {
336+
isa = XCConfigurationList;
337+
buildConfigurations = (
338+
5DCC0D2F25F78DD600F3074C /* Debug */,
339+
5DCC0D3025F78DD600F3074C /* Release */,
340+
);
341+
defaultConfigurationIsVisible = 0;
342+
defaultConfigurationName = Release;
343+
};
344+
5DCC0D3125F78DD600F3074C /* Build configuration list for PBXNativeTarget "OC-Example" */ = {
345+
isa = XCConfigurationList;
346+
buildConfigurations = (
347+
5DCC0D3225F78DD600F3074C /* Debug */,
348+
5DCC0D3325F78DD600F3074C /* Release */,
349+
);
350+
defaultConfigurationIsVisible = 0;
351+
defaultConfigurationName = Release;
352+
};
353+
/* End XCConfigurationList section */
354+
};
355+
rootObject = 5DCC0D1025F78DD400F3074C /* Project object */;
356+
}

Example/OC-Example/OC-Example.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// AppDelegate.h
3+
// OC-Example
4+
//
5+
// Created by 张行 on 2021/3/9.
6+
//
7+
8+
#import <UIKit/UIKit.h>
9+
10+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
11+
12+
13+
@end
14+

0 commit comments

Comments
 (0)