-
Notifications
You must be signed in to change notification settings - Fork 76
Add support to include library using .xcodeproj
without CocoaPods
#4
Comments
Any way we can prioritize this approach? As of now even if we get the CP approach to work, it looks like removing the various RN projects breaks functionality in XCode. |
@hzalaz What I did have success with is using cocoapods to install the dependencies of the Lock but not the RN code itself. In other words, my Podfile has:
Right now I just add the m/h files in this repos manually to my project. Theoretically those should be addable through another project, I would imagine? That way I don't need to tinker with how React in included. |
Yes, but the ideal will be with the Lock static lib instead of using CocoaPods to build it. |
Agreed on not ideal and I would prefer to not use CP at all here. That being said I am not too worried about conflict here as the only items pulled in through CP are Auth0. |
Yes, but Auth0 has a couple of dependencies, e.g. Facebook SDK in Lock-Facebook |
Any solution that doesn't require pulling out the react subprojects would be very very very strongly preferable - there are other useful react-native libraries that seem to expect react-native components to be included in the traditional way, and I expect that pulling them out is going to lead to major maintenance headaches down the road (most immediately on major react-native updates). |
@carbureted short of rewriting the entire objc Lock library for react-native, which is not in our plans right now, I can't come up with a perfect solution for this since react native provides no support for this kind of libs that have a native dependency and most libraries are very simple (just one or two objc files with no dependencies) That being said, I have almost finished a compromise solution to this issue at the cost of losing the native integration like using facebook sdk to login. |
This worked pretty well for me: #4 (comment) |
@cancan101 yes, that will be our suggestion if you really want native integrations. I have to test that setup when you also include fb sdk as a rn dependency |
@cancan101 I'm pretty new to ios/xcode development - maybe there's a basic step I missed, but just dragging in the files as depicted gives me import errors. Did you need to modify any code? @hzalaz I don't need anything other than the most basic email/password authentication, so the solution you mentioned sounds good to me. |
@cancan101 can you please provide ore information where do you put these files from the screenshot. I never worked with XCode before and can't understand where should I copy those files |
I've been spending hours trying to get this to work, without success, very frustrating. I wish Auth0 could provide a solution that would just work out-of-the-box, together with all other React Native libraries. |
+1 |
Closing this, the module |
Need to have a Lock as a static library and all resources bundle (with images and xib files)
The text was updated successfully, but these errors were encountered: