Getting 'undefined' when running on iOS
See original GitHub issueReturns undefined when trying to print out version number on iOS device:
console.log('versionNumber ', VersionNumber)
{appVersion: undefined, buildVersion: undefined, bundleIdentifier: undefined}
Tested on iOS 11.4 iPhone 8 (simulator and device)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:12
Top Results From Across the Web
Getting Undefined Symbols erros while trying build and run in ...
Getting Undefined Symbols erros while trying build and run in iOS Device · Go to '…' · Click on '…' · Scroll down...
Read more >Undefined symbols for architecture arm64 - ios - Stack Overflow
I fixed this by deleting arm64 from the Valid Architectures list and then setting Build Active Architecture Only to NO. It seems to...
Read more >XCTestCase - Undefined symbol | Apple Developer Forums
Hello, I began writing tests for a SwiftUI project I've been working on, but was getting some "Undefined symbol" error when attempting to...
Read more >undefined - JavaScript - MDN Web Docs - Mozilla
The global undefined property represents the primitive value undefined. It is one of JavaScript's primitive types.
Read more >TypeError: Cannot read property 'devicetypes' of undefined #268
I'm getting the following message when running "ios-sim showdevicetypes": TypeError: Cannot read property 'devicetypes' of undefined at ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@karaoak +1
undefined
appears when the pod is not installedvia CLI :
then install pods
then re-build the app from XCode
Please follow step 1 and 2 https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking to link the iOS react-native-version-number native iOS lib by hand.
At step 1 drag the ./node_modules/react-native-version-number/ios/RNVersionNumber.xcodeproj to your iOS project in XCode as per manual.