Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS build failed #3

Open
sportakal opened this issue Jul 9, 2023 · 0 comments
Open

iOS build failed #3

sportakal opened this issue Jul 9, 2023 · 0 comments

Comments

@sportakal
Copy link
Contributor

sportakal commented Jul 9, 2023

iOS build failed with the message:


Compiling suirn-test-expo Pods/React-Codegen » FBReactNativeSpec-generated.mm

❌ (ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h:2216:46)

2214 | NSMutableDictionary *d = [NSMutableDictionary new];
2215 | auto window = i.window;

2216 | d[@"window"] = window.has_value() ? window.value().buildUnsafeRawValue() : nil;
| ^ 'value' is unavailable: introduced in iOS 12.0
2217 | auto screen = i.screen;
2218 | d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil;
2219 | auto windowPhysicalPixels = i.windowPhysicalPixels;

❌ (ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h:2218:46)

2216 | d[@"window"] = window.has_value() ? window.value().buildUnsafeRawValue() : nil;
2217 | auto screen = i.screen;

2218 | d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil;
| ^ 'value' is unavailable: introduced in iOS 12.0
2219 | auto windowPhysicalPixels = i.windowPhysicalPixels;
2220 | d[@"windowPhysicalPixels"] = windowPhysicalPixels.has_value() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil;
2221 | auto screenPhysicalPixels = i.screenPhysicalPixels;

❌ (ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h:2220:88)

2218 | d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil;
2219 | auto windowPhysicalPixels = i.windowPhysicalPixels;

2220 | d[@"windowPhysicalPixels"] = windowPhysicalPixels.has_value() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil;
| ^ 'value' is unavailable: introduced in iOS 12.0
2221 | auto screenPhysicalPixels = i.screenPhysicalPixels;
2222 | d[@"screenPhysicalPixels"] = screenPhysicalPixels.has_value() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil;
2223 | return d;

❌ (ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h:2222:88)

2220 | d[@"windowPhysicalPixels"] = windowPhysicalPixels.has_value() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil;
2221 | auto screenPhysicalPixels = i.screenPhysicalPixels;

2222 | d[@"screenPhysicalPixels"] = screenPhysicalPixels.has_value() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil;
| ^ 'value' is unavailable: introduced in iOS 12.0
2223 | return d;
2224 | }) {}
2225 | inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(DimensionsPayload i) : _factory(^{

❌ (ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h:2233:96)

2231 | d[@"Dimensions"] = Dimensions.buildUnsafeRawValue();
2232 | auto isIPhoneX_deprecated = i.isIPhoneX_deprecated;

2233 | d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.has_value() ? @((BOOL)isIPhoneX_deprecated.value()) : nil;
| ^ 'value' is unavailable: introduced in iOS 12.0
2234 | return d;
2235 | }) {}
2236 | inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{

❌ (ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h:2472:68)

2470 | d[@"patch"] = @(patch);
2471 | auto prerelease = i.prerelease.get();

2472 | d[@"prerelease"] = prerelease.has_value() ? @((double)prerelease.value()) : nil;
| ^ 'value' is unavailable: introduced in iOS 12.0
2473 | return d;
2474 | }) {}
2475 | inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{

❌ (ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h:2598:110)

2596 | d[@"HEIGHT"] = @(HEIGHT);
2597 | auto DEFAULT_BACKGROUND_COLOR = i.DEFAULT_BACKGROUND_COLOR;

2598 | d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.has_value() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil;
| ^ 'value' is unavailable: introduced in iOS 12.0
2599 | return d;
2600 | }) {}
2601 | inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{

› Packaging expo-keep-awake Pods/ExpoKeepAwake » libExpoKeepAwake.a
› Executing expo-keep-awake Pods/ExpoKeepAwake » Copy generated compatibility header
› Executing expo-file-system Pods/EXFileSystem » [CP] Copy XCFrameworks
› Executing expo-splash-screen Pods/EXSplashScreen » [CP] Copy XCFrameworks
› Executing expo-constants Pods/EXConstants » [CP-User] Generate app.config for prebuilt Constants.manifest
Run script build phase 'Bundle React Native code and images' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'SwiftUIReactNative' from project 'SwiftUIReactNative')
Run script build phase 'Start Packager' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'SwiftUIReactNative' from project 'SwiftUIReactNative')
Run script build phase '[CP-User] Generate app.config for prebuilt Constants.manifest' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXConstants' from project 'Pods')

› 7 error(s), and 3 warning(s)

CommandError: Failed to build iOS project. "xcodebuild" exited with error code 65.
error Command failed with exit code 1.

I've researched this bug has been solved on react-native@0.70.10
Check conversation on:
#facebook/react-native#34106 (comment)

I've created a PR, merge it to help others
##2

Thanks for this awesome package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant