Closed
Description
Description
Action Taken : Upgraded from RN version 0.41.0 to version 0.42.0.
Expected : RN iOS project should compile and run properly (using Xcode 7.3).
Actual : The RN iOS project fails to compile the file "react-native/React/Profiler/RCTProfile.m" (#line 386)
Here is the code that fails :
#if !TARGET_OS_TV
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[[NSURL fileURLWithPath:outFile]]
applicationActivities:nil];
activityViewController.completionWithItemsHandler = ^(__unused UIActivityType activityType,
__unused BOOL completed,
__unused NSArray *items,
__unused NSError *error) {
RCTProfileControlsWindow.hidden = NO;
};
RCTProfileControlsWindow.hidden = YES;
dispatch_async(dispatch_get_main_queue(), ^{
[[[[[UIApplication sharedApplication] delegate] window] rootViewController] presentViewController:activityViewController
animated:YES
completion:nil];
});
#endif
Reproduction
Steps to reproduce : Upgrade the RN project from version 0.41.0 to 0.42.0
Solution
After commenting out the code mentioned above, the project compiles and runs successfully, however this by no means should be considered a solution. The developer who did those changes would be in a better position to address this (refer the point 1 in more information below)
More Information
- Github commit which has caused this issue
- Xcode version : 7.3
- People here are facing this issue too
Additional Information
- React Native version: [RN 0.42.0 : YES]
- Platform: iOS only
- Operating System : MacOS