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

Update to 2.1.5 breaks my project. #928

Closed
sankhadeeproy007 opened this issue Jun 9, 2017 · 17 comments
Closed

Update to 2.1.5 breaks my project. #928

sankhadeeproy007 opened this issue Jun 9, 2017 · 17 comments

Comments

@sankhadeeproy007
Copy link
Contributor

sankhadeeproy007 commented Jun 9, 2017

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

@yaronlevi
Copy link

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

@flyandi
Copy link
Contributor

flyandi commented Jun 10, 2017

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 :\

@stadiumbeejm
Copy link

I am having issues as well.

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

@sankhadeeproy007
Copy link
Contributor Author

Did you follow the steps mentioned?

@stadiumbeejm
Copy link

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

@sankhadeeproy007
Copy link
Contributor Author

did you create your app with CRNA?

@stadiumbeejm
Copy link

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

@sankhadeeproy007
Copy link
Contributor Author

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

@sankhadeeproy007
Copy link
Contributor Author

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

@stadiumbeejm
Copy link

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?

@sankhadeeproy007
Copy link
Contributor Author

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

@sankhadeeproy007
Copy link
Contributor Author

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

@stadiumbeejm
Copy link

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

@HenryZl
Copy link

HenryZl commented Jun 22, 2017

你好,
我在执行过
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
有什么解决思路吗?

@voquockhanh
Copy link

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

@shivrajkumar
Copy link
Collaborator

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

@fabOnReact
Copy link

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

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

No branches or pull requests

8 participants