justdice / react-native-advertising-id

React Native bridge for fetching advertising info on iOS and Android
MIT License
37 stars 31 forks source link

Need Help with iOS demo app #21

Open michaelklem opened 4 years ago

michaelklem commented 4 years ago

Hi again. I have been trying to get this your demo code to work on Android and iOS devices. The Android demo worked, but I cannot make progress with the iOS demo app. I have not used XCode in a while so I may be missing something.

I am using OS X 10.14.6 XCode 11.3.1 Node 11 react-native 4.4.0

Errors shown in XCode: /Users/klemm/Sites/react_native/react-native-advertising-id/demo/node_modules/react-native-advertising-id/ios/RNAdvertisingId-Bridging-Header.h:1:9: 'React/RCTBridgeModule.h' file not found

failed to emit precompiled header '/Users/klemm/Library/Developer/Xcode/DerivedData/demo-fdvybqppbmpffsfydatjyizmizdk/Build/Intermediates.noindex/PrecompiledHeaders/RNAdvertisingId-Bridging-Header-swift_28Y52FXFNEZV-clang_KLU4EDN5EN1U.pch' for bridging header '/Users/klemm/Sites/react_native/react-native-advertising-id/demo/node_modules/react-native-advertising-id/ios/RNAdvertisingId-Bridging-Header.h'

It is not clear to me if I need to do something with the pod file. I am not seeing any files in XCode as red. Any ideas what I am missing?

Thanks

Screen Shot 2020-03-27 at 6 37 45 PM
luatnd commented 3 years ago

If you use the latest react-native version (>=0.60.x), the package is auto-linked,

I guess you do some manual linking?