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

Not able to run it without using CocoaPods #358

Open
P-Panayotov opened this issue Jul 11, 2016 · 5 comments
Open

Not able to run it without using CocoaPods #358

P-Panayotov opened this issue Jul 11, 2016 · 5 comments
Milestone

Comments

@P-Panayotov
Copy link

P-Panayotov commented Jul 11, 2016

Hi there,
being trying to run NUI manually as a module of my main project. I have followed the instructions, but no mater what I tried it just didn't work. I am trying to avoid using CocoaPods as we use Carthage in our project currently and this will mess everything up. Any chance you make NUI work with Carthage as well?

I am getting 'NUIParse.h' file not found error in NUIDefenition.h here

#if __has_include(<NUIParse/NUIParse.h>)
#    import <NUIParse/NUIParse.h>
#else
#    import "NUIParse.h"
#endif

when I try to build the project and I can't get around it.

@caiodias
Copy link

I had the same result when I removed the CocoaPods elements.

@Stunner
Copy link
Collaborator

Stunner commented Jul 11, 2016

This issue seems awfully similar to #355.

Yeah, as soon as I get some free time I'll look into getting NUI on Carthage.

@P-Panayotov
Copy link
Author

P-Panayotov commented Jul 12, 2016

Just ended up doing a work around with CocoaPods. If someone else is looking at the same issue here is my solution.

In your project create a podfile with the following content:

platform :ios, '8.0'
use_frameworks!

target "NUI" do
  pod "NUI"
end

then run pod install --no-integrate this will build the project with CocoaPods. As you noticed there is --no-integrate flag which basically tells CocoaPods to build the project but not to create the Workspace. Open the Pods folder in your project and drag Pods.xcodeproj file in your project navigator.
Add Pods_NUI.framework in Linked Frameworks and Libraries in your project and last just #import <NUI/NUISettings.h> in your bridging header and Voala :) it's all working and you can use it as a module in your project avoiding the Workspace hassle.

@caiodias
Copy link

caiodias commented Jul 12, 2016

Interesting approach @PanPanayotov. However, Cocoa Pods doesn't have this install option.
https://guides.cocoapods.org/terminal/commands.html#pod_install

And you're using Cocoa Pods.

@Stunner
Copy link
Collaborator

Stunner commented Jul 12, 2016

They moved it to be a specification inside of the Podfile for 1.0: CocoaPods/CocoaPods#5240 (comment)

@Stunner Stunner added this to the 0.6.0 milestone Jul 18, 2016
@Stunner Stunner mentioned this issue Jul 18, 2016
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

3 participants