React-native-fast-image: Xcode has encountered an error reading an invalid project file

Created on 11 Jul 2019  路  13Comments  路  Source: DylanVann/react-native-fast-image

Describe the bug
The Xcode project will no longer open in Xcode this is also unavailable after a react-native link.

To Reproduce
Steps to reproduce the behavior if possible, or a link to a reproduction repo:

  1. Install the 7.0.2 release or latest master
  2. Click on FastImage.xcodeproj
  3. See error
Xcode has encountered an error reading an invalid project file. The project file `/Users/lunchmeat/Downloads/react-native-fast-image-master/ios/FastImage.xcodeproj` contains a PBXContainerItemProxy `FD751C41229EB44C002BE1F4` whose containerPortal does not exist.

Expected behavior
Expected the project to open in Xcode.

Screenshots

Screen Shot 2019-07-11 at 10 53 57 AM

Dependency versions

  • React Native version: 0.60
  • React version: 16.8.6
  • React Native Fast Image version: 7.0.2

Note: if these are not the latest versions of each I recommend updating as extra effort will not be taken to be backwards compatible, and updating might resolving your issue.

bug

Most helpful comment

Removing the existing Manually Link and using pod install fix it.

If I link to version 6 Manually and then update to version 7, it seems to be the problem that Xcode is shutting down.
or
Manually Link version 7 to the same problem

All 13 comments

Happens the same to me. I am using react native 0.59.10

The same for me, react native 0.59.9

Same thing happen to me. Xcode crash after open my project file. It won't crash after I downgrade it to v6.1.1

here is my environment version

 React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
      Memory: 7.32 GB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.16.0 - ~/.nvm/versions/node/v10.16.0/bin/node
      Yarn: 1.17.0 - /usr/local/bin/yarn
      npm: 6.9.0 - ~/.nvm/versions/node/v10.16.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 23, 25, 26, 27, 28, 29
        Build Tools: 27.0.3, 28.0.3, 29.0.0
        System Images: android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
    IDEs:
      Android Studio: 3.4 AI-183.6156.11.34.5522156
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: ^0.59.1 => 0.59.10 
    npmGlobalPackages:
      react-native-cli: 2.0.1

@DylanVann can you check, can't open fast-image project (XCode crush) on 7.0.2

You shouldn't need to do any linking with 7.0.2, React Native now uses CocoaPods for native iOS dependencies.

cd ios
pod install

Removing the existing Manually Link and using pod install fix it.

If I link to version 6 Manually and then update to version 7, it seems to be the problem that Xcode is shutting down.
or
Manually Link version 7 to the same problem

Add this into your Podfile

rn_fast_image_path = '../node_modules/react-native-fast-image'
pod 'RNFastImage', :podspec => "#{rn_fast_image_path}/RNFastImage.podspec"

then run pod install again, it should fix the issue with Xcode.

Fixed
before update to 0.60.3 and 7.0.2 need remove FastImage from project libraries or xcode crush

Add this into your Podfile

rn_fast_image_path = '../node_modules/react-native-fast-image'
pod 'RNFastImage', :podspec => "#{rn_fast_image_path}/RNFastImage.podspec"

then run pod install again, it should fix the issue with Xcode.

i follow you step , but the cocoapod install error:
[!] Unable to find a specification for SDWebImageWebPCoder (~> 0.2.3) depended upon by RNFastImage

Any new? I`ve the same problem in my project after upgrade to 7.0 version.

Is working fine in React Native 0.60.4 with fast-image 7.0.2 (auto-linking)

Removing the existing Manually Link and using pod install fix it.

works for me

For anyone that updates this package from an older version, we updated from v4 to v8 for a fix on Android but updating broke iOS. You need to make sure the package is not manually linked as this is not needed anymore and causes xcode to crash.

Run the following command:
npx react-native unlink react-native-fast-image

Was this page helpful?
0 / 5 - 0 ratings