Skip to content

Commit 340db11

Browse files
author
Dmitriy Grachev
committed
added info about use_frameworks in example project #344
1 parent 8dad981 commit 340db11

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

example/ios/Podfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
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+
221
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
322

423
target 'RNPermissionsExample' do

example/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ DEPENDENCIES:
301301
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
302302

303303
SPEC REPOS:
304-
https://github.com/CocoaPods/Specs.git:
304+
trunk:
305305
- boost-for-react-native
306306

307307
EXTERNAL SOURCES:
@@ -435,6 +435,6 @@ SPEC CHECKSUMS:
435435
RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4
436436
Yoga: 14927e37bd25376d216b150ab2a561773d57911f
437437

438-
PODFILE CHECKSUM: fd41fb3cc785483e3289e017b0986b9b143fd760
438+
PODFILE CHECKSUM: 9188a4aace868c237f075e5ce6f84fb03952b3e2
439439

440-
COCOAPODS: 1.8.3
440+
COCOAPODS: 1.8.4

example/ios/RNPermissionsExample.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
01942B9A460F342DD2C59941 /* libPods-RNPermissionsExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 9589A3603474A4FFDED0D10B /* libPods-RNPermissionsExample.a */; };
1011
13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; };
1112
13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
1213
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1314
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 */; };
1515
/* End PBXBuildFile section */
1616

1717
/* Begin PBXFileReference section */
@@ -23,9 +23,9 @@
2323
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = RNPermissionsExample/Images.xcassets; sourceTree = "<group>"; };
2424
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = RNPermissionsExample/Info.plist; sourceTree = "<group>"; };
2525
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; };
2627
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>"; };
2728
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; };
2929
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
3030
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; };
3131
/* End PBXFileReference section */
@@ -35,7 +35,7 @@
3535
isa = PBXFrameworksBuildPhase;
3636
buildActionMask = 2147483647;
3737
files = (
38-
6875196781331FFE9E603F87 /* libPods-RNPermissionsExample.a in Frameworks */,
38+
01942B9A460F342DD2C59941 /* libPods-RNPermissionsExample.a in Frameworks */,
3939
);
4040
runOnlyForDeploymentPostprocessing = 0;
4141
};
@@ -70,7 +70,7 @@
7070
children = (
7171
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
7272
ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
73-
DD155AF45729590903A0B306 /* libPods-RNPermissionsExample.a */,
73+
9589A3603474A4FFDED0D10B /* libPods-RNPermissionsExample.a */,
7474
);
7575
name = Frameworks;
7676
sourceTree = "<group>";

0 commit comments

Comments
 (0)