NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Update to 2.1.5 breaks my project.

Open sankhadeeproy007 opened this issue 9 years ago • 17 comments

When we upgrade to 2.1.5 and above from an older version of native-base, there are multiple build errors. This is happening because we have removed the unused fonts from the package #900.

If you've not many any changes to native code: Deleting the android/ios directories and running react-native upgrade fixes it.

Otherwise

Unlinking vector-icons and cleaning the build should fix it. Steps screen shot 2017-06-10 at 2 38 40 pm

screen shot 2017-06-10 at 2 38 27 pm

react-native link

sankhadeeproy007 avatar Jun 09 '17 13:06 sankhadeeproy007

Seems like I haveing this issue. Do you think it's related? screen shot 2017-06-10 at 2 07 06

yaronlevi avatar Jun 09 '17 23:06 yaronlevi

I just removed the references from the project but now I have a different issue .. seems like everytime I upgrade there is a problem in native-base :\

flyandi avatar Jun 10 '17 05:06 flyandi

I am having issues as well.

screen shot 2017-06-10 at 3 56 30 am

stadiumbeejm avatar Jun 10 '17 07:06 stadiumbeejm

Did you follow the steps mentioned?

sankhadeeproy007 avatar Jun 10 '17 07:06 sankhadeeproy007

I ran your first piece of code with no effect. I dont know what you mean by deleting my ios/android directories

stadiumbeejm avatar Jun 10 '17 08:06 stadiumbeejm

did you create your app with CRNA?

sankhadeeproy007 avatar Jun 10 '17 08:06 sankhadeeproy007

no it is an old project. I just pulled it down from git ran, npm install and it freaked out with all these errors

stadiumbeejm avatar Jun 10 '17 08:06 stadiumbeejm

ios/android directory means folders named ios and android inside your project.

sankhadeeproy007 avatar Jun 10 '17 08:06 sankhadeeproy007

@yaronlevi Yes, that's because of the breaking change. Let me know if that fixes it.

sankhadeeproy007 avatar Jun 10 '17 08:06 sankhadeeproy007

i guess I am lost...and i guess more new that what i actually considered. Why do i need to delete these with all my custom java and custom ios code. What value does that give me?

stadiumbeejm avatar Jun 10 '17 08:06 stadiumbeejm

@stadiumbeejm okay hold on, I'll just get back with an alternative.

sankhadeeproy007 avatar Jun 10 '17 08:06 sankhadeeproy007

@stadiumbeejm The steps have been updated in the initial comment. can you try that out and let me know.

sankhadeeproy007 avatar Jun 10 '17 09:06 sankhadeeproy007

I pulled fresh from git npm install npm link react-native run-ios

I got the below

screen shot 2017-06-10 at 9 44 17 am screen shot 2017-06-10 at 9 46 50 am

stadiumbeejm avatar Jun 10 '17 13:06 stadiumbeejm

你好, 我在执行过 react-native upgrade npm install react-native link 之后,在模拟器上运行app时, 我得到了这样一个错误, Bundling index.android.js 100.0% (989/989), done. Opening /xxxxxxx/node_modules/native-base/dist/src/index.js with code spawn code ENOENT 有什么解决思路吗?

HenryZl avatar Jun 22 '17 01:06 HenryZl

Hi guys,

  • After remove fonts from "Copy Bundle Resource" step of IOS. I meet same problems like @yaronlevi @flyandi @stadiumbeejm

  • I think problems came from we didn't delete 100% old font from "project.pbxproj" file. So, we need manual delete them. In my case, here I did:

  1. Open "project.pbxproj" with your text Editor
  2. Find "PBXGroup", scroll down a bit until you see some lines like this: ECCBAFC717104E399E34097D /* EvilIcons.ttf */,
  3. You may see some duplicate .tff here. In my case: FC3471B0670F40EBA73BB0AF /* EvilIcons.ttf */, ECCBAFC717104E399E34097D /* EvilIcons.ttf */,
  4. left value is ID, use it to search in file. if you see which ID is less occurrence, mean it is missed deleted by our steps in first post. You need delete those lines using that ID
  • In case you already deleted those .tff files preference in "Resources" in Xcode like @flyandi , you will not see duplicate "xxxx.ttf" in "PBXGroup". you should find "xxxx.ttf" manually in "project.pbxproj" and find wrong ID.

Hope it help : D

voquockhanh avatar Jun 27 '17 10:06 voquockhanh

Closing this as the above solution works. Let us know if you still face this

shivrajkumar avatar Jul 25 '17 07:07 shivrajkumar

I tried the following solution and solved the problem, without having to manually delete the entries.

fabOnReact avatar Feb 25 '19 19:02 fabOnReact