From 9062127039a01f80ad0457d66162ce2052121c9d Mon Sep 17 00:00:00 2001 From: Hans Date: Tue, 22 Oct 2024 00:01:11 +0800 Subject: [PATCH] chore: fix example and tip Podfile configure --- README.md | 4 ++++ example/ios/Podfile | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b3073b7..acd9608 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,15 @@ npm install bark.rn target "YourApp" do # ... + # Add these lines spm_pkg "bark", :url => "https://github.com/PABannier/bark.cpp.git", :branch => "1.0.0", :products => ["bark"] + # spm_pkg should be before use_native_modules! + config = use_native_modules! + # ... end ``` diff --git a/example/ios/Podfile b/example/ios/Podfile index 91363a6..1c29712 100644 --- a/example/ios/Podfile +++ b/example/ios/Podfile @@ -15,6 +15,11 @@ if linkage != nil end target 'BarkRnExample' do + spm_pkg "bark", + :url => "https://github.com/PABannier/bark.cpp.git", + :branch => "1.0.0", + :products => ["bark"] + config = use_native_modules! use_react_native!( @@ -23,11 +28,6 @@ target 'BarkRnExample' do :app_path => "#{Pod::Config.instance.installation_root}/.." ) - spm_pkg "bark", - :url => "https://github.com/PABannier/bark.cpp.git", - :branch => "1.0.0", - :products => ["bark"] - target 'BarkRnExampleTests' do inherit! :complete # Pods for testing