Description:
I've read the issue https://github.com/OneSignal/react-native-onesignal/issues/838 and added some comments. My problem is similar to what was exposed in that issue but cannot be solved with the solutions provided in this ticket.
I have a project that I want to migrate from react-native 0.59.10 to react-native 0.62.2.
I can manage to build my project locally but on my bitrise ci the archive task fails. The command executed by bitrise is
xcodebuild -workspace /Users/scesbron/dev/front/packages/mobile/ios/wecasa.xcworkspace/ -scheme wecasa -configuration Staging COMPLIER_INDEX_STORE_ENABLE=NO archive -archivePath /Users/scesbron/tmp/wecasa.xcarchive
Locally the same command also fails with
Ld /Users/scesbron/Library/Developer/Xcode/DerivedData/wecasa-hcsnerxmdxdzhhhetgrrfvjexliq/Build/Intermediates.noindex/ArchiveIntermediates/wecasa/IntermediateBuildFilesPath/wecasa.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/armv7/Binary/OneSignalNotificationServiceExtension normal armv7
The Binary folder pointer by this command exists but it is empty.
If I remove all the OneSignal related code in my xcode project the xcodebuild command works.
If I put back OneSignal according to what is said in the doc https://documentation.onesignal.com/docs/react-native-sdk-setup it fails with the error above.
I have another similar project that works. I know that this error is related to something specific to my project but I checked both configurations several times and I cannot find something different. The main difference between both projects are the dependencies. The project that fails as react-native-appsflyer, react-native-fbsdk, Firebase/DynamicLinks, FIrebase/Messaging and tipsi-stripe dependencies that the other does not have.
Environment
Steps to Reproduce Issue:
This issue can only be reproduced on my project I cannot give you a project to reproduce it.
My compilation problem seemed to be due to the modification I made for code push based on https://github.com/microsoft/react-native-code-push/blob/master/docs/multi-deployment-testing-ios.md.
I realized that the problem only occurs for Staging configuration, not for Release. As long as I removed the specific configuration for code push it was ok.
Most helpful comment
My compilation problem seemed to be due to the modification I made for code push based on https://github.com/microsoft/react-native-code-push/blob/master/docs/multi-deployment-testing-ios.md.
I realized that the problem only occurs for Staging configuration, not for Release. As long as I removed the specific configuration for code push it was ok.