You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 20, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on May 20, 2025. It is now read-only.
Staging build: 'CodePush/CodePush.h' file not found #688
Amur (@Amurmurmur), I've got the same issue and resolved it like this:
So I've changed Staging Build Products Path value from $(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) to $(BUILD_DIR)/Release$(EFFECTIVE_PLATFORM_NAME)
Could you please verify if it works for you? If so, we should probably update the documentation to workaround the issue.
Reacted by westcode, colin3dmax, Huang Kaiwen, ZhangZzzz, Nathan Broadbent, zhenyu, Han You, Michiel Dral, Iain Kirkpatrick, rmtngh and 9 more
Sergey Akhalkov (@sergey-akhalkov) Yep that worked!! Thank you so much.
However I guess its just a workaround and the team has to fix it anyway, or add this in the documentation?!
Amur (@Amurmurmur), thanks for the response. I've reproduced and fixed the issue in the same way without using CodePush. So initial react-native app (created by react-native init myapp command) also has this issue, we should probably investigate it to find more suitable solution or at least update the documentation.
Hi Sergey Akhalkov (@sergey-akhalkov) I'm having this issue but I don't think I have any 'multi deployment testing' setup, it's just when I go to run the release scheme. i've tried all solutions i.e manually importing codepush.h, adding the library from scratch etc. I'm running react native 0.40.0 and react-native-code-push 1.16.1-beta. The weird thing was it was working fine and I'd created a build and submitted it to the app store, but then I changed a google services.plist file and suddenly the build broke... I've tried restarting computer etc etc... Also in your solution above I can't actually find the 'Build Locations' settings anywhere, I'm using xcode 8.2
EDIT: Sorry was using wrong version, needed 1.17.1-beta
The trick with $(BUILD_DIR)/Release$(EFFECTIVE_PLATFORM_NAME) seems to work but when there is a dependency that does not work anymore in particularly with GoogleToolboxForMac.
I tried to make some change on the PODS_CONFIGURATION_BUILD_DIR with the value $PODS_BUILD_DIR/Release$(EFFECTIVE_PLATFORM_NAME) but that does not work !
Someone as a solution when we use a POD ?
Reacted by Guns, Michael Van Milligan, Benoit D., Luiz Parreira, Dibakar Halder and KuongKnight
Activity
sergey-akhalkov commentedon Feb 6, 2017
Amur (@Amurmurmur), I've got the same issue and resolved it like this:

So I've changed Staging
Build Products Pathvalue from$(BUILD_DIR)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)to$(BUILD_DIR)/Release$(EFFECTIVE_PLATFORM_NAME)Could you please verify if it works for you? If so, we should probably update the documentation to workaround the issue.
Amurmurmur commentedon Feb 6, 2017
Sergey Akhalkov (@sergey-akhalkov) Yep that worked!! Thank you so much.
However I guess its just a workaround and the team has to fix it anyway, or add this in the documentation?!
Cheeers
sergey-akhalkov commentedon Feb 6, 2017
Amur (@Amurmurmur), thanks for the response. I've reproduced and fixed the issue in the same way without using CodePush. So initial react-native app (created by
react-native init myappcommand) also has this issue, we should probably investigate it to find more suitable solution or at least update the documentation.sergey-akhalkov commentedon Feb 7, 2017
Closing this, please feel free to reopen if needed
almadsen commentedon Feb 7, 2017
I was still getting this, my work around for it was/is:
I first tried putting the search link in the target but that still got me a file not found, but in the project part it stoped giving me the error.
Amurmurmur commentedon Feb 8, 2017
Alexander Madsen (@almadsen) That didnt work for me :/ Only the solution suggested by Sergey Akhalkov (@sergey-akhalkov) did work. :/
readme: improved “Multi-Deployment Testing” chapter for iOS (#690)
SamMatthewsIsACommonName commentedon Feb 20, 2017
Hi Sergey Akhalkov (@sergey-akhalkov) I'm having this issue but I don't think I have any 'multi deployment testing' setup, it's just when I go to run the release scheme. i've tried all solutions i.e manually importing codepush.h, adding the library from scratch etc. I'm running react native 0.40.0 and react-native-code-push 1.16.1-beta. The weird thing was it was working fine and I'd created a build and submitted it to the app store, but then I changed a google services.plist file and suddenly the build broke... I've tried restarting computer etc etc... Also in your solution above I can't actually find the 'Build Locations' settings anywhere, I'm using xcode 8.2
EDIT: Sorry was using wrong version, needed 1.17.1-beta
neopit commentedon Mar 30, 2017
I have a similar error but now with a POD.
The trick with$(BUILD_DIR)/Release$ (EFFECTIVE_PLATFORM_NAME) seems to work but when there is a dependency that does not work anymore in particularly with GoogleToolboxForMac.
I tried to make some change on the PODS_CONFIGURATION_BUILD_DIR with the value$PODS_BUILD_DIR/Release$ (EFFECTIVE_PLATFORM_NAME) but that does not work !
Someone as a solution when we use a POD ?
salujaharkirat commentedon Jun 19, 2017
Peter Gartner (@neopit) not working with Pods on staging.. tried a lot
dimkol-dm commentedon Jul 27, 2017
Try to add Staging configuration to CodePush and React projects... works for me
wprater commentedon Nov 19, 2017
This issue is persisting for me when I try to build on Buddy Build or MMC App Center. anyone else encounter this?
erumkatzwan commentedon Apr 9, 2018
Sergey Akhalkov (@sergey-akhalkov) Thanks man it works
baotoan1905 commentedon Jan 6, 2020
I can't find "Build Location -> Per-configuration Build Products Path". Any idea ?
byteab commentedon Oct 10, 2020
this issue still exist