Skip to content

Commit 7fa7f51

Browse files
committed
update for ios
1 parent f947c9f commit 7fa7f51

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

bindings/lni_react_native/LniFramework.xcframework/Info.plist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<key>BinaryPath</key>
99
<string>liblni_uniffi.a</string>
1010
<key>LibraryIdentifier</key>
11-
<string>ios-arm64-simulator</string>
11+
<string>ios-arm64</string>
1212
<key>LibraryPath</key>
1313
<string>liblni_uniffi.a</string>
1414
<key>SupportedArchitectures</key>
@@ -17,14 +17,12 @@
1717
</array>
1818
<key>SupportedPlatform</key>
1919
<string>ios</string>
20-
<key>SupportedPlatformVariant</key>
21-
<string>simulator</string>
2220
</dict>
2321
<dict>
2422
<key>BinaryPath</key>
2523
<string>liblni_uniffi.a</string>
2624
<key>LibraryIdentifier</key>
27-
<string>ios-arm64</string>
25+
<string>ios-arm64-simulator</string>
2826
<key>LibraryPath</key>
2927
<string>liblni_uniffi.a</string>
3028
<key>SupportedArchitectures</key>
@@ -33,6 +31,8 @@
3331
</array>
3432
<key>SupportedPlatform</key>
3533
<string>ios</string>
34+
<key>SupportedPlatformVariant</key>
35+
<string>simulator</string>
3636
</dict>
3737
</array>
3838
<key>CFBundlePackageType</key>

bindings/lni_react_native/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
yarn ubrn:clean
22
rm -rf rust_modules
33
yarn ubrn:checkout
4-
yarn
54
# yarn ubrn:android
65
yarn ubrn:ios
6+
# cd example/ios && pod install --repo-update && cd ../ <-- run this if you get errors to updates the pods
7+
# cd example && yarn ios

bindings/lni_react_native/example/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
PhoenixdNode,
55
InvoiceType,
66
type ListTransactionsParams,
7-
} from '../../src';
7+
} from 'react-native-lni';
88
import {
99
PHOENIXD_URL,
1010
PHOENIXD_PASSWORD,
@@ -32,8 +32,8 @@ export default function App() {
3232
password: PHOENIXD_PASSWORD,
3333
});
3434

35-
//const info = await node.getInfo();
36-
// setPubKey(info.pubkey);
35+
const info = await node.getInfo();
36+
setPubKey(info.pubkey);
3737

3838
const offerResp = await node.makeInvoice({
3939
invoiceType: InvoiceType.Bolt12,

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ yarn start
106106
107107
`*troubleshooting react-natve`:
108108
- if you get an error like `uniffiEnsureInitialized`, then you might need to kill the app and restart. (ios simulator - double tap home button then swipe away app)
109+
- try updating the pods for ios `cd example/ios && pod install --repo-update && cd ../`
109110
- for ios open the xcode app - lni/bindings/lni_react_native/example/ios/LniExample.xcworkspace
110111
- Then click the project in the left "LniExample" to select for the context menu
111112
- In the top click "Product -> Clean build folder" and then build and run

0 commit comments

Comments
 (0)