Skip to content

Commit ec6f59c

Browse files
CursedWizardKihibu
authored andcommitted
fix(ios): fixed build error
1 parent ed8359f commit ec6f59c

8 files changed

Lines changed: 2934 additions & 6 deletions

File tree

Dgis.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ Pod::Spec.new do |s|
1616
s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
1717
s.private_header_files = "ios/**/*.h"
1818

19+
s.dependency 'DGisMobileSDK', "13.2.0-full"
20+
1921
install_modules_dependencies(s)
2022
end

example/ios/DgisExample.xcodeproj/project.pbxproj

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
/* Begin PBXBuildFile section */
1010
0C80B921A6F3F58F76C31292 /* libPods-DgisExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-DgisExample.a */; };
1111
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
12+
4B23851906877DD633FDE1DA /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */; };
1213
761780ED2CA45674006654EE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EC2CA45674006654EE /* AppDelegate.swift */; };
1314
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
1415
/* End PBXBuildFile section */
@@ -159,6 +160,7 @@
159160
files = (
160161
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
161162
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
163+
4B23851906877DD633FDE1DA /* PrivacyInfo.xcprivacy in Resources */,
162164
);
163165
runOnlyForDeploymentPostprocessing = 0;
164166
};
@@ -271,7 +273,7 @@
271273
"-ObjC",
272274
"-lc++",
273275
);
274-
PRODUCT_BUNDLE_IDENTIFIER = "dgis.example";
276+
PRODUCT_BUNDLE_IDENTIFIER = app.transline;
275277
PRODUCT_NAME = DgisExample;
276278
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
277279
SWIFT_VERSION = 5.0;
@@ -298,7 +300,7 @@
298300
"-ObjC",
299301
"-lc++",
300302
);
301-
PRODUCT_BUNDLE_IDENTIFIER = "dgis.example";
303+
PRODUCT_BUNDLE_IDENTIFIER = app.transline;
302304
PRODUCT_NAME = DgisExample;
303305
SWIFT_VERSION = 5.0;
304306
VERSIONING_SYSTEM = "apple-generic";
@@ -366,6 +368,7 @@
366368
);
367369
MTL_ENABLE_DEBUG_INFO = YES;
368370
ONLY_ACTIVE_ARCH = YES;
371+
OTHER_CFLAGS = "$(inherited)";
369372
OTHER_CPLUSPLUSFLAGS = (
370373
"$(OTHER_CFLAGS)",
371374
"-DFOLLY_NO_CONFIG",
@@ -374,7 +377,10 @@
374377
"-DFOLLY_CFG_NO_COROUTINES=1",
375378
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
376379
);
380+
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
377381
SDKROOT = iphoneos;
382+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
383+
USE_HERMES = true;
378384
};
379385
name = Debug;
380386
};
@@ -431,6 +437,7 @@
431437
"\"$(inherited)\"",
432438
);
433439
MTL_ENABLE_DEBUG_INFO = NO;
440+
OTHER_CFLAGS = "$(inherited)";
434441
OTHER_CPLUSPLUSFLAGS = (
435442
"$(OTHER_CFLAGS)",
436443
"-DFOLLY_NO_CONFIG",
@@ -439,7 +446,9 @@
439446
"-DFOLLY_CFG_NO_COROUTINES=1",
440447
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
441448
);
449+
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
442450
SDKROOT = iphoneos;
451+
USE_HERMES = true;
443452
VALIDATE_PRODUCT = YES;
444453
};
445454
name = Release;

example/ios/DgisExample.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/ios/DgisExample/Info.plist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@
2828
<true/>
2929
<key>NSAppTransportSecurity</key>
3030
<dict>
31-
<!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! -->
3231
<key>NSAllowsArbitraryLoads</key>
3332
<false/>
3433
<key>NSAllowsLocalNetworking</key>
3534
<true/>
3635
</dict>
3736
<key>NSLocationWhenInUseUsageDescription</key>
3837
<string></string>
38+
<key>RCTNewArchEnabled</key>
39+
<true/>
3940
<key>UILaunchStoryboardName</key>
4041
<string>LaunchScreen</string>
4142
<key>UIRequiredDeviceCapabilities</key>

0 commit comments

Comments
 (0)