Skip to content

Commit dd41e90

Browse files
committed
Add troubleshooting for linking library. Close #2.
1 parent ac4e99a commit dd41e90

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,18 @@ DeviceUUID.getUUID().then((uuid) => {
2727
console.log(uuid);
2828
});
2929
```
30+
31+
## Troubleshooting
32+
33+
### DeviceUUID just hangs and does not log the uuid to the console ([#2](https://github.com/lazywei/react-native-device-uuid/issues/2)), thanks to [@irfaan](https://github.com/irfaan)
34+
35+
1. In XCode, in the project navigator, right click Libraries
36+
2. Add Files to [your project's name]
37+
3. Go to node\_modules
38+
4. react-native-device-uuid and add the .xcodeproj file
39+
5. In XCode, in the project navigator, select your project
40+
6. Add the lib\*.a from the react-native-device-uuid project to your project's Build Phases - Link Binary With Libraries. Select the .a file.
41+
7. Go to the Build Settings tab.
42+
8. Make sure 'All' is toggled on (instead of 'Basic').
43+
9. Look for Header Search Paths and make sure it contains both `$(SRCROOT)/../react-native/React` and `$(SRCROOT)/../../React` - mark both as recursive.
44+

0 commit comments

Comments
 (0)