'__rip' in '__darwin_arm_thread_state64 in ThirdParty glog dependency only on attached device
See original GitHub issueIs this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment: OS: macOS Sierra 10.12.6 Node: 8.4.0 Yarn: 1.0.0 npm: 5.3.0 Watchman: 4.7.0 Xcode: Xcode 9.0 Build version 9A235 Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed) react: 16.0.0-alpha.12 => 16.0.0-alpha.12 react-native: ^0.48.4 => 0.48.4
Steps to Reproduce
react-native init Mira
open Mira/ios/Mira.xcproj
- Select a connect iPhone 6s on iOS 11 and try to build and run
Expected Behavior
The iOS app builds on the connected iPhone 6s with iOS 11 and runs correctly
Actual Behavior
A build error in signalhandler.cc
With
No member named '__rip' in '__darwin_arm_thread_state64'
on the line
return (void*)context->PC_FROM_UCONTEXT;
// Returns the program counter from signal context, NULL if unknown.
void* GetPC(void* ucontext_in_void) {
#if (defined(HAVE_UCONTEXT_H) || defined(HAVE_SYS_UCONTEXT_H)) && defined(PC_FROM_UCONTEXT)
if (ucontext_in_void != NULL) {
ucontext_t *context = reinterpret_cast<ucontext_t *>(ucontext_in_void);
return (void*)context->PC_FROM_UCONTEXT; // <---- build error here
}
#endif
return NULL;
}
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
- https://s3-us-west-1.amazonaws.com/maxofedenpublic/Mira.tar.gz
- Please attach a connected iPhone 6s with iOS 11
Issue Analytics
- State:
- Created 6 years ago
- Reactions:41
- Comments:46 (5 by maintainers)
Top Results From Across the Web
No results found
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 FreeTop 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
Top GitHub Comments
Thanks, works for me too. Changing
return (void*)context->PC_FROM_UCONTEXT;
toreturn NULL;
Fixed it by deleting
node_modules
&yarn install
.