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

Fresh project build error on ios #4238

Closed
NickIliev opened this issue Dec 17, 2018 · 5 comments
Closed

Fresh project build error on ios #4238

NickIliev opened this issue Dec 17, 2018 · 5 comments
Assignees
Milestone

Comments

@NickIliev
Copy link
Contributor

@hamdiwanis commented on Sun Dec 16 2018

Environment

  • CLI: 5.1.0
  • Cross-platform modules: 5.1.0
  • Android Runtime: 5.1.0
  • iOS Runtime: 5.1.0
  • Plugin(s): none

Describe the bug

i get this error with ios build

linking ObjC for iOS Simulator, but dylib (/Volumes/project/platforms/ios/internal/NativeScript.framework/NativeScript) was compiled for MacOSX

ld: framework not found CoreServices for architecture i386

To Reproduce

tns create test
cd test
npm i
tns run ios

@NickIliev commented on Mon Dec 17 2018

@hamdiwanis what is the simulator/device you are running on?

@hamdiwanis
Copy link

Thanks @Nicklliev for thr response. I use the ios simulator that comes with xcode version 9 specifically i phone 6 with ios 12. It used yo work until i upgraded from 4.2 to 5.1

@NickIliev
Copy link
Contributor Author

NickIliev commented Dec 17, 2018

@hamdiwanis can you try adding these two lines in your build.xcconfig

ARCHS=i386 x86_64
VALID_ARCHS=i386 x86_64
The macOS 10.14 SDK no longer contains support for compiling 32-bit applications. If developers need to compile for i386, Xcode 9.4 or earlier is required. (39858111)

We removed the explicit i386 builds here so we could support setting deployment target

If the solution with build.xcconfig is not working please do let me know and also try the following solution but in reverse (adding ARCHS and VALID_ARCHS instead of removing them)

@NickIliev
Copy link
Contributor Author

NickIliev commented Dec 17, 2018

@hamdiwanis we will rele4ase a fix via NativeScript 5.1.1 that will handle this case. Meanwhile you could test the fix via installing the release candidate

npm i -g nativescript@rc

@hamdiwanis
Copy link

thanks but with both solutions still get the same error
ld: framework not found CoreServices for architecture i386

@NickIliev
Copy link
Contributor Author

@hamdiwanis ok on second thought it seems that the issue you are hitting seems related to this one. We are not able to reproduce the issue but it might be related to a messed up XCode environment- if possible please try reinstalling the XCode

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

No branches or pull requests

3 participants