Browse Source

added info about use_frameworks in example project #344

Dmitriy Grachev 4 years ago
parent
commit
340db111ba

+ 19
- 0
example/ios/Podfile View File

@@ -1,4 +1,23 @@
1 1
 platform :ios, '9.0'
2
+
3
+# if you have prebuild dynamic cocoapods dependencies and could not migrate
4
+# to use_modular_headers you should use workaround for linking app with dynamic frameworks
5
+# and with static libraries by uncommenting next code
6
+
7
+# use_frameworks!
8
+# dynamic_frameworks = []
9
+# pre_install do |installer|
10
+#   # make all the other libraries into static frameworks by overriding the static_library
11
+#     installer.pod_targets.each do |pod|
12
+#         if !dynamic_frameworks.include?(pod.name)
13
+#             puts "Overriding the static_framework? method for #{pod.name}"
14
+#             def pod.build_type;
15
+#               Pod::Target::BuildType.static_library
16
+#             end
17
+#         end
18
+#     end
19
+# end
20
+
2 21
 require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3 22
 
4 23
 target 'RNPermissionsExample' do

+ 3
- 3
example/ios/Podfile.lock View File

@@ -301,7 +301,7 @@ DEPENDENCIES:
301 301
   - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
302 302
 
303 303
 SPEC REPOS:
304
-  https://github.com/CocoaPods/Specs.git:
304
+  trunk:
305 305
     - boost-for-react-native
306 306
 
307 307
 EXTERNAL SOURCES:
@@ -435,6 +435,6 @@ SPEC CHECKSUMS:
435 435
   RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4
436 436
   Yoga: 14927e37bd25376d216b150ab2a561773d57911f
437 437
 
438
-PODFILE CHECKSUM: fd41fb3cc785483e3289e017b0986b9b143fd760
438
+PODFILE CHECKSUM: 9188a4aace868c237f075e5ce6f84fb03952b3e2
439 439
 
440
-COCOAPODS: 1.8.3
440
+COCOAPODS: 1.8.4

+ 4
- 4
example/ios/RNPermissionsExample.xcodeproj/project.pbxproj View File

@@ -7,11 +7,11 @@
7 7
 	objects = {
8 8
 
9 9
 /* Begin PBXBuildFile section */
10
+		01942B9A460F342DD2C59941 /* libPods-RNPermissionsExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9589A3603474A4FFDED0D10B /* libPods-RNPermissionsExample.a */; };
10 11
 		13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
11 12
 		13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
12 13
 		13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13 14
 		13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
14
-		6875196781331FFE9E603F87 /* libPods-RNPermissionsExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = DD155AF45729590903A0B306 /* libPods-RNPermissionsExample.a */; };
15 15
 /* End PBXBuildFile section */
16 16
 
17 17
 /* Begin PBXFileReference section */
@@ -23,9 +23,9 @@
23 23
 		13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = RNPermissionsExample/Images.xcassets; sourceTree = "<group>"; };
24 24
 		13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = RNPermissionsExample/Info.plist; sourceTree = "<group>"; };
25 25
 		13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = RNPermissionsExample/main.m; sourceTree = "<group>"; };
26
+		9589A3603474A4FFDED0D10B /* libPods-RNPermissionsExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNPermissionsExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
26 27
 		AEA89E08943D1AC580FE431E /* Pods-RNPermissionsExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNPermissionsExample.release.xcconfig"; path = "Target Support Files/Pods-RNPermissionsExample/Pods-RNPermissionsExample.release.xcconfig"; sourceTree = "<group>"; };
27 28
 		D6698846DE1278CE89BAFBAD /* Pods-RNPermissionsExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNPermissionsExample.debug.xcconfig"; path = "Target Support Files/Pods-RNPermissionsExample/Pods-RNPermissionsExample.debug.xcconfig"; sourceTree = "<group>"; };
28
-		DD155AF45729590903A0B306 /* libPods-RNPermissionsExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNPermissionsExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
29 29
 		ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
30 30
 		ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
31 31
 /* End PBXFileReference section */
@@ -35,7 +35,7 @@
35 35
 			isa = PBXFrameworksBuildPhase;
36 36
 			buildActionMask = 2147483647;
37 37
 			files = (
38
-				6875196781331FFE9E603F87 /* libPods-RNPermissionsExample.a in Frameworks */,
38
+				01942B9A460F342DD2C59941 /* libPods-RNPermissionsExample.a in Frameworks */,
39 39
 			);
40 40
 			runOnlyForDeploymentPostprocessing = 0;
41 41
 		};
@@ -70,7 +70,7 @@
70 70
 			children = (
71 71
 				ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
72 72
 				ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
73
-				DD155AF45729590903A0B306 /* libPods-RNPermissionsExample.a */,
73
+				9589A3603474A4FFDED0D10B /* libPods-RNPermissionsExample.a */,
74 74
 			);
75 75
 			name = Frameworks;
76 76
 			sourceTree = "<group>";