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
Getting it to work with Xcode 5 and iOS 7 #37
Comments
Can you try if it works better now? It builds in my Xcode 5, but I don't have a 5s to test on. |
Hmm... Now that I look a little closer I think you might have built the wrong project :) I think you built |
Thanks for your reply. It works now. It wasn't clear that I needed to run it on an actual iPhone for it to work! Running it in the simulator doesn't work. |
The iOS framework should work on the simulator too. I didn't test it with iOS7 and Xcode 5 yet. I'll do it ASAP. |
That would depend on the build target, I think. If the framework was built only for a device, then it will only work on a device. |
No, the first script of "NMSSH Framework" target compile the framework for both iphoneos and iphonesimulator. |
Thanks for all the great support. But maybe I wasn't clear the first time describing the issue, so here goes: I had two projects open, on the left the NMSSH project and on the right my own, empty single view Xcode 5 project. I followed the instructions (https://github.com/Lejdborg/NMSSH/wiki/Build-and-use-in-your-iOS-project) for building the NMSSH framework. That worked. So far so good. Then In the project navigator of the NMSSH project, I located under the Products group the NMSSH.framework. I dragged it to my new, empty project in the Frameworks group (also in the project navigator). In the window that popped up I checked the 'Copy items into destination group's folder (if needed)' and 'Create groups for any added folders' and checked the project target. When I checked the build phases in my new project, Xcode had added the NMSSH.framework automatically. So now I only needed to add here the libz.dylib framework by clicking the '+' sign. Then I added in the view controller the example code (changed the ip address) as described in the readme.md file (including the #include <NMSSH/NMSSH.h> line). Now when I try to run it in the simulator, it doesn't build. But when I run it on my actual iPhone, it works just fine. I had expected it worked in the simulator as well. |
The problem is that you can't use the framework in the Products group but you have to use the framework from the Product folder that is in the same folder of the project. Maybe the instructions are not clear enough, my fault! |
Thanks! But that still doesn't work. |
This is the compiled framework from the latest commit http://cl.ly/2y3v161L282y It doesn't work on your project? Can you provide an example project? |
Hi,
Thank you for your framewrok. It is exacty what I need to create a remote control app for a quadcopter. I followed your steps exactly on https://github.com/Lejdborg/NMSSH/wiki/Build-and-use-in-your-iOS-project, but it seems it doesn't work in Xcode 5 for iOS 7. It looks like it has something to do with the i386 architecture. What do I need to do in order to get it to build correctly?
The text was updated successfully, but these errors were encountered: