star-micronics / react-native-star-io10

react-native-star-io10 is a library for supporting application development for Star Micronics devices.
Other
83 stars 54 forks source link

Example app for iOS cannot be built with Xcode14.3 #97

Closed bandit-ibayashi closed 1 year ago

bandit-ibayashi commented 1 year ago

Description

An iOS version example application including StarXpand SDK for React Native V1.3.0 cannot be built with Xcode14.3.

Devices where the bug occurs

Independent of devices.

Printers

Independent of printer model.

Development environment

To Reproduce

  1. Execute the following command according to the [Usage] of the example application.

    $ yarn install
    $ cd ios
    $ pod update
    $ cd ..
    $ npx react-native run-ios
  2. The following error occurred and the build failed.

    ** BUILD FAILED **
    
    The following build commands failed:
        CompileC /Users/xxx/StarXpand_SDK_for_ReactNative_V1.3.0/example/ios/DerivedData/example/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-Codegen.build/Objects-normal/arm64/FBReactNativeSpec-generated.o /Users/xxx/StarXpand_SDK_for_ReactNative_V1.3.0/example/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-Codegen' from project 'Pods')
    (1 failure)

Root causes

This is because compilation of React-Codegen fails in Xcode14.3 as written in the issue of react-native

How to resolve

Update the React Native version that the example app links to to 0.71.6 or later, which fixes this issue.

bandit-ibayashi commented 1 year ago

Fixed at our latest release.