owncloud / ios-library

MIT License
77 stars 90 forks source link

Cannot 'Run' sample app - It builds fine, but cannot be run in XCode. #46

Closed jonmach closed 8 years ago

jonmach commented 10 years ago

Hi,

I've downloaded the ios-library-master file and opened OCLibraryExample.xcodeproj in XCode. I can 'Build' and 'Build for Run', but I cannot 'Run' i.e. Cmd-R (as it is disabled). I have managed to run the project before (not got it working, but I did get it running). I am only experiencing this on code I downloaded yesterday. Has something changed, or am I missing something obvious?

javiergonzper commented 10 years ago

Hi @jonmach

Did work? Looks like you do not have a scheme. Could you try to add a scheme?

captura de pantalla 2014-08-25 a la s 18 01 28

jonmach commented 10 years ago

Hi @javiergonzper, thanks for responding. I already have a scheme. I'm simply opening the xcode project as I unzip it. If I go to Product->Scheme->Edit Scheme, then I see what you have above. Although I have another couple of Build options (Parellize Build, and Find Implicit Dependencies). As I said, I cannot see anything obvious.

javiergonzper commented 10 years ago

Oh I see, sorry.

I think that the problem is that it is not selected by default the executable. Choose near the "Play" button the OCLibrary example instead of the ownCloud iOS library.

See the image: captura de pantalla 2014-08-26 a la s 19 02 12

jonmach commented 10 years ago

Ahhhhhhhh...

Thank you. That's exactly what was wrong. Clearly, I was building the Library instead of a project that used the library even though they were both part of the same project. It's obvious that in this case I would not be able to run it.

nasli commented 8 years ago

Closed as solved, if needed, please reopen