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

Xcode crashes after upgrade to version 7.0.0 #527

Closed
waheedakhtar694 opened this issue Jul 25, 2019 · 26 comments
Closed

Xcode crashes after upgrade to version 7.0.0 #527

waheedakhtar694 opened this issue Jul 25, 2019 · 26 comments
Labels

Comments

@waheedakhtar694
Copy link

My Xcode was working fine and i was facing an issue on android while building it and got a solution that it can be solved after upgrading to 7.0.0 and i upgraded and it started working fine on android but after that when i run on IOS my Xcode got crashed i down grade my version again to "react-native-fast-image": "^5.1.2", and it start working again.

@trinadhkoya9
Copy link

Yeah experiencing the same.
By the way my RN version is 0.59.9

@dinhtu0802
Copy link

same!

@devapro
Copy link

devapro commented Jul 30, 2019

I resolved an issue, but it looks very odd.
I just copied folder Vendor, FastImage and FastImage.xcodeproj from older releases.

@paulohenriqueav
Copy link

paulohenriqueav commented Aug 5, 2019

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

@linh232323
Copy link

i have same issue, my xcode crash everytime when i upgrade into 7.0.2

@trinadhkoya9
Copy link

trinadhkoya9 commented Aug 23, 2019 via email

@sylv1b
Copy link

sylv1b commented Aug 25, 2019

I have the same issue.

  • Xcode 10.3
  • RN 0.65
    Went back to version 6.1.1

@silentlight
Copy link

I have the same issue with version 7.0.2 (RN 0.65). It crushes my Xcode. When I go back to 6.1.1 Android build does not work. What a nightmare...

@bang9
Copy link

bang9 commented Sep 3, 2019

I have the same issue with version 7.0.2 (RN 0.65). It crushes my Xcode. When I go back to 6.1.1 Android build does not work. What a nightmare...

@silentlight
currently 7.0.x of iOS is not wokring
use 6.1.1 and then fix the build.gradle of android(react-native-fast-image) as '7.0.x' build.gradle file
(6.1.1 using Glide that not supported android x)

@trinadhkoya9
Copy link

trinadhkoya9 commented Sep 3, 2019 via email

@belal-mazlom
Copy link

belal-mazlom commented Sep 13, 2019

I stayed with latest version, but I did copy ios directory from 6.1.1 version
That's work fine I hope changes will fix the problem soon
I just spend 3 days trying to know why my Xcode project crashed

Thanks for suggestions here.

@martinzangl-santexgroup
Copy link

martinzangl-santexgroup commented Oct 2, 2019

a coworker found that adding this line xcode doesn't crash. I don't know why that line isn't on master, and it seems like the only commit that affected it was the #486, weird thing is that line wasn't removed on that PR.

@mic7010
Copy link

mic7010 commented Oct 3, 2019

@trinadhkoya9 - I am receiving 'SDWebImage/SDAnimatedImageView+WebCache.h' file not found

@a1b2c3d4e5x
Copy link

the same, how to fix it?

@tomoima525
Copy link

For those struggling with the 7.0.0, I came up with the solution to use 6.1.1 and keep Android running. See my comment here #499 (comment)

@eleddie
Copy link

eleddie commented Nov 22, 2019

I forked the repo to fix this (temporarily) it uses ios in version 6.1.1 and android in version 8.0.0 and doesn't crash.
To use it just change in package.json this:
"react-native-fast-image": "eleddie/react-native-fast-image#master",
Remember to link afterwards if needed

@PierreCapo
Copy link

PierreCapo commented Dec 5, 2019

So, this is how I fixed the problem (XCode instantly crashing):

I had react-native-fast-image manually linked in the project whereas SDWebImage was in the pods.

# Before
pod 'SDWebImage', '= 4.4.6'	
pod 'SDWebImage/GIF', '= 4.4.6'	
pod 'SDWebImage/WebP', '= 4.4.6'	

So, what I did: I moved react-native-fast-image to the pods and cleaned the SDWebImage imports. I ended up with a podfile like this:

# After
pod 'RNFastImage', path: '../node_modules/react-native-fast-image/RNFastImage.podspec'
pod 'SDWebImage'
pod 'SDWebImageFLPlugin'
pod 'SDWebImageWebPCoder'

Don't forget to add this line at the top of your AppDelegate.m:

[[SDImageCodersManager sharedManager] addCoder:[SDImageWebPCoder sharedCoder]];

And that's it, it solved the problem for me, XCode is not crashing anymore and the app is compiling well!

@Desintegrator
Copy link

same issue

@imanshu1
Copy link

Any updates on this ?

@baotoan1905
Copy link

any updates on it ?

@Joshmatjjen
Copy link

Still No update? .... I am off

@estemilia
Copy link

same issue
Xcode 11.3.1
react-native 0.63.3
react-native-fast-image 8.3.3

@Joshmatjjen
Copy link

Joshmatjjen commented Nov 9, 2020

@estemilia ... What is the purpose of using react-native-fast-image, Let me give u a suggestion of another library to use as an alternative

@estemilia
Copy link

estemilia commented Nov 17, 2020

@Joshmatjjen sorry for late
purpose: show image faster without flickering using cache
suggestion : downgrade react-native-fast-image@6.1.1 (xcode stop crash)

@beisert1
Copy link

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

@DylanVann
Copy link
Owner

There's something wrong with the state of you project, pretty much impossible to debug without seeing it.

I'd recommend cleaning, unlinking, removing node_modules, installing the latest version, pod install in ios, then see if it works. The library installed on a clean project works 100%.

Please open another issue with more specifics / if you can reproduce on a clean project.

I know how frustrating this can be. It may be worth it to just create a new project with the CLI, reinstall your deps, move your code over. It'll take a few hours but it'll definitely fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests