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

Cannot archive iOS project in Xcode 10 beta 4 #20812

Closed
3 tasks done
rodrigopk opened this issue Aug 23, 2018 · 1 comment
Closed
3 tasks done

Cannot archive iOS project in Xcode 10 beta 4 #20812

rodrigopk opened this issue Aug 23, 2018 · 1 comment
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@rodrigopk
Copy link

Environment

React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
      Memory: 376.16 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 8.3.0 - ~/.nvm/versions/node/v8.3.0/bin/node
      Yarn: yarn install v0.28.4 - /usr/local/bin/yarn
      npm: 5.3.0 - ~/.nvm/versions/node/v8.3.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
      Android SDK:
        Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.3
        API Levels: 23, 25, 26, 27
    IDEs:
      Android Studio: 3.1 AI-173.4720617
      Xcode: 10.0/10L213o - /usr/bin/xcodebuild
    npmPackages:
      react: 16.4.1 => 16.4.1
      react-native: 0.56.0 => 0.56.0
    npmGlobalPackages:
      react-native-git-upgrade: 0.2.7

Description

I've been trying to archive my using Xcode 10 beta 4, and after getting past the issue already described in #20774 I got a different issue when archiving the project:

/Users/rodrigovasconcelos/MyApp/mobile/ios/MyApp-Bridging-Header.h:5:9: error: 'React/RCTBridgeModule.h' file not found
#import <React/RCTBridgeModule.h>
        ^
1 error generated.
<unknown>:0: error: failed to emit precompiled header '/Users/rodrigovasconcelos/Library/Developer/Xcode/DerivedData/MyApp-cpkesijquffkhgfgaagxybgvqlpr/Build/Intermediates.noindex/ArchiveIntermediates/Edge/PrecompiledHeaders/MyApp-Bridging-Header-swift_1E09NP8RKFO6-clang_1NNXX086AFKFR.pch' for bridging header '/Users/rodrigovasconcelos/MyApp/mobile/ios/MyApp-Bridging-Header.h'

The issue does not occurs if I try to build and archive using the latest stable version of XCode (9.4.1)
So far, I've tried to re-install my Pods, clean XCode derived data and node_modules folder, and also looked for similar issues, but nothing helped it.

Reproducible Demo

Unfortunately I could not reproduce it on a fresh project, even after adding the pods, but I get it on my current project.

@react-native-bot react-native-bot added the Platform: iOS iOS applications. label Aug 23, 2018
@rodrigopk
Copy link
Author

The issue was actually related to how React and Xcode handle custom project configurations (different then Release / Debug) - related to #11813
Following the steps suggested in this comment solved the issue.

@facebook facebook locked as resolved and limited conversation to collaborators Aug 23, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Aug 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

2 participants