Skip to content

Commit 1256173

Browse files
author
Piotr Trocki
committed
fix ios
1 parent db3ea3f commit 1256173

File tree

11 files changed

+1286
-305
lines changed

11 files changed

+1286
-305
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Android
44

5-
Linking custom cpp to Android lib is kinda difficult. Here you can how to make it:
5+
Linking custom cpp to Android lib is kinda difficult. Here you can see how to make it:
66
[link](https://github.com/troZee/react-native-cpp-autolinking/commit/5e1b0f2171490a435b540271588b34ca98287801)
77

88
## iOS

cpp/unicorn.cpp

-24
This file was deleted.

cpp/unicorn.h

-26
This file was deleted.

example/.node-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16

example/ios/Podfile

+13-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
require_relative '../node_modules/react-native/scripts/react_native_pods'
22
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
33

4-
platform :ios, '11.0'
4+
platform :ios, '12.4'
55
install! 'cocoapods', :deterministic_uuids => false
66

7-
ENV['RCT_NEW_ARCH_ENABLED'] = '1'
8-
97
target 'UnicornExample' do
108
config = use_native_modules!
119

@@ -18,17 +16,21 @@ target 'UnicornExample' do
1816
:hermes_enabled => true,
1917
:fabric_enabled => flags[:fabric_enabled],
2018
# An absolute path to your application root.
21-
:app_path => "#{Pod::Config.instance.installation_root}/.."
19+
:app_path => "#{Pod::Config.instance.installation_root}/..",
20+
# Enables Flipper.
21+
#
22+
# Note that if you have use_frameworks! enabled, Flipper will not work and
23+
# you should disable the next line.
24+
:flipper_configuration => FlipperConfiguration.enabled,
2225
)
2326

24-
# Enables Flipper.
25-
#
26-
# Note that if you have use_frameworks! enabled, Flipper will not work and
27-
# you should disable the next line.
28-
use_flipper!()
29-
3027
post_install do |installer|
31-
react_native_post_install(installer)
28+
react_native_post_install(
29+
installer,
30+
# Set `mac_catalyst_enabled` to `true` in order to apply patches
31+
# necessary for Mac Catalyst builds
32+
:mac_catalyst_enabled => false
33+
)
3234
__apply_Xcode_12_5_M1_post_install_workaround(installer)
3335
end
3436
end

0 commit comments

Comments
 (0)