star-micronics / react-native-star-io10

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

"Multiple commands produce" Error while running project on simulator. #77

Closed gm-esoft closed 3 months ago

gm-esoft commented 2 years ago

Description

While running ReactNative app from xCode, I am getting following error

Multiple commands produce '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarConnectionSettings.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64/StarIO10.framework/Headers/StarConnectionSettings.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarConnectionSettings.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64_x86_64-simulator/StarIO10.framework/Headers/StarConnectionSettings.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarConnectionSettings.h'
Multiple commands produce '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarIO10-Swift.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64/StarIO10.framework/Headers/StarIO10-Swift.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarIO10-Swift.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64_x86_64-simulator/StarIO10.framework/Headers/StarIO10-Swift.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarIO10-Swift.h'
Multiple commands produce '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarIO10.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64/StarIO10.framework/Headers/StarIO10.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarIO10.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64_x86_64-simulator/StarIO10.framework/Headers/StarIO10.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarIO10.h'
Multiple commands produce '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarIO10Error.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64/StarIO10.framework/Headers/StarIO10Error.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarIO10Error.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64_x86_64-simulator/StarIO10.framework/Headers/StarIO10Error.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarIO10Error.h'
Multiple commands produce '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarLoggerWrapper.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64/StarIO10.framework/PrivateHeaders/StarLoggerWrapper.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarLoggerWrapper.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64_x86_64-simulator/StarIO10.framework/PrivateHeaders/StarLoggerWrapper.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarLoggerWrapper.h'
Multiple commands produce '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarXpandCommandParserWrapper.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64/StarIO10.framework/PrivateHeaders/StarXpandCommandParserWrapper.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarXpandCommandParserWrapper.h'
Target 'react-native-star-io10' (project 'Pods') has copy command from '/Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64_x86_64-simulator/StarIO10.framework/PrivateHeaders/StarXpandCommandParserWrapper.h' to '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarXpandCommandParserWrapper.h'

and Warning

duplicate output file '/Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarXpandCommandParserWrapper.h' on task: CpHeader /Users/UserName/Library/Developer/Xcode/DerivedData/tabbardrawerdemo-ckocjvrmrkkkhhdojmincqfubugt/Build/Products/Debug-iphonesimulator/react-native-star-io10/react_native_star_io10.framework/Headers/StarXpandCommandParserWrapper.h /Users/UserName/Code/Research/EPOS/tabbardrawerdemo/node_modules/react-native-star-io10/ios/libs/StarIO10.xcframework/ios-arm64_x86_64-simulator/StarIO10.framework/PrivateHeaders/StarXpandCommandParserWrapper.h

I have installed react-native-star-io10 package via npm and using 'New Build System' of iOS. I have removed DerivedData folder and clean the build but getting same error.

Your device where the bug occurs

hetoms commented 1 year ago

Did you have any luck resolving that issue?

kickbk commented 1 year ago

Seeing this as well with the latest update.

kickbk commented 1 year ago

Here. I triaged it for you: https://github.com/star-micronics/react-native-star-io10/issues/90

bandit-ibayashi commented 1 year ago

Sorry for the delay in responding. As far as we have built our sample SDK, we do not have this problem, so we will continue to investigate the situation with this error, including @kickbk advice.

Thanks!

santiagofm commented 1 year ago

@bandit-ibayashi What do you mean? The example app shows the problem too if you enable use_frameworks & static linking with use_frameworks! :linkage => :static.

can-miki commented 5 months ago

Sorry for the late reply. We have provided how to instruct use_frameworks! in https://github.com/star-micronics/react-native-star-io10/issues/90 . Also, the latest version currently supports use_frameworks!. We would appreciate it if you could refer to this.