NimbleKit - fast iOS app development

Create new project with NK 1.9.8.1

Please post here if you think only NimbleKit developers can solve your problem

Create new project with NK 1.9.8.1

Postby chula » Wed Nov 02, 2011 6:16 pm

With NK 1.9.7, when create new project, it will creates iPhone and iPad folder (for universal) and corresponding .xib. It also set appropriately the Main Interface, and the delegate is renamed to <project name>Delegate.m

But with 1.9.8.1, all these are broken. I tried it on Xcode 4.1 (on lion) and 4.2 (on snow leopard) on two different Mac. Is it only my problem?
chula
 
Posts: 4
Joined: Wed Nov 02, 2011 6:05 pm

Re: Create new project with NK 1.9.8.1

Postby cactuscraig » Wed Nov 02, 2011 6:59 pm

I have created several new projects using 1.9.8.1 on Lion/xCode 4.2 without issue.
I have heard of many botched installs though of xCode.
User avatar
cactuscraig
 
Posts: 846
Joined: Thu Feb 03, 2011 5:15 pm
Location: Scottsdale, AZ

Re: Create new project with NK 1.9.8.1

Postby chula » Thu Nov 03, 2011 10:05 am

cactuscraig wrote:I have created several new projects using 1.9.8.1 on Lion/xCode 4.2 without issue.
I have heard of many botched installs though of xCode.


This time I tried on the Mac-Mini (the new Core-i7 one) that come with Lion. I uninstalled the Xcode 4.1 by following the About Xcode.PDF:

sudo <Xcode>/Library/uninstall-devtools --mode=all

Then installed XCode 4.2 for lion, then installed NK 1.9.8.1. No luck, the problem persists :cry: Do I need to uninstalled the previously installed NK 1.9.8.1 firstly? If yes, how to do it?
chula
 
Posts: 4
Joined: Wed Nov 02, 2011 6:05 pm

Re: Create new project with NK 1.9.8.1

Postby chula » Thu Nov 03, 2011 11:16 am

okay, this another:-

On a Snow Leopard MacBook Air, XCode 4.2 plus NK 1.9.8.1 gives that problem. Then I uninstalled XCode 4.2 and installed XCode 4.0.2 and NK 1.9.8.1 again, problem persisted. Then I install NK 1.9.8, the create new projects work properly again.
chula
 
Posts: 4
Joined: Wed Nov 02, 2011 6:05 pm

Re: Create new project with NK 1.9.8.1

Postby Briger » Wed Nov 16, 2011 8:14 am

Hello

Im new in the World of MAC,XCode and NK. I have start with a Mac Mini and now try to learn XCode with NK. My Problem is the same from chula.

I have XCode 4.2 and NK 1.9.8.1 If i create a New Project IPhone its ok
if i create a Project IPad settings and Files are the same from IPhone
if i create a Universal Project settings and Files are again the same vom IPhone no difference.

Installation MAC,XCode etc. are fresh from Apple/Store/NK Homepage.

Andy Idea?

Sorry for my english its not my native language. :-)

Regards Patrick
Briger
 
Posts: 9
Joined: Tue Oct 18, 2011 12:42 pm

Re: Create new project with NK 1.9.8.1

Postby chula » Tue Dec 06, 2011 11:14 am

Any update for this issue? I could not upgrade to XCode 4.2 due to this. I am a paid customer but no one answer my support email for the same question :cry:
chula
 
Posts: 4
Joined: Wed Nov 02, 2011 6:05 pm

Re: Create new project with NK 1.9.8.1

Postby Briger » Tue Dec 06, 2011 1:29 pm

I think NK is dead if i look the Forum the last days/weeks. Too bad that i have buy NK in October and now this.
Briger
 
Posts: 9
Joined: Tue Oct 18, 2011 12:42 pm

Re: Create new project with NK 1.9.8.1

Postby HalfMoon » Tue Dec 06, 2011 2:01 pm

Not tried this as I'm only working with iPhone apps atm, but Off The Top Of My Head, have you tried going into Targets > iOS Application Target and changing the Devices select box to iPad or Universal?

For example, if you select Universal it should then show the panes for iPhone/iPod Deployment info + iPad Deployment info with the corresponding wells for Icons, Launch Images etc
User avatar
HalfMoon
NimbleKit Guru
 
Posts: 662
Joined: Thu Jun 04, 2009 6:21 pm
Location: Brighton, UK

Re: Create new project with NK 1.9.8.1

Postby cactuscraig » Tue Dec 06, 2011 5:08 pm

Briger wrote:Hello

Im new in the World of MAC,XCode and NK. I have start with a Mac Mini and now try to learn XCode with NK. My Problem is the same from chula.

I have XCode 4.2 and NK 1.9.8.1 If i create a New Project IPhone its ok
if i create a Project IPad settings and Files are the same from IPhone
if i create a Universal Project settings and Files are again the same vom IPhone no difference.

Installation MAC,XCode etc. are fresh from Apple/Store/NK Homepage.

Andy Idea?

Sorry for my english its not my native language. :-)

Regards Patrick


How do you mean "files are the same" ?
NK uses the same files for both. You have to use NKGetDeviceType() to realize what device you are running and appropriately change your content.
For example, look at this FREE App:
http://itunes.apple.com/us/app/sheraton ... 24267?mt=8

main.html changes its look based on the device type.
Code: Select all
 var devicetype = NKGetDeviceType();
if (devicetype.indexOf("iPhone")==0) { devicetype="iphone"; }
//so now, device type, while on this page = "iphone"
if (devicetype=="iphone") {
  NKAlert ("Device","You are using an iPhone");
} else {
  NKAlert ("Device", "You are using an iPad");
}
//Each page will need to test, or use NKSettings to write a value and use it throughout the app.
User avatar
cactuscraig
 
Posts: 846
Joined: Thu Feb 03, 2011 5:15 pm
Location: Scottsdale, AZ

Re: Create new project with NK 1.9.8.1

Postby Briger » Wed Dec 07, 2011 6:14 am

Hi. Thanks for your answer. What i mean is i dont see any difference if i select IPhone,IPad ore Universal. The Files are the same ond the Settings. Setting are on IPhone set.
Briger
 
Posts: 9
Joined: Tue Oct 18, 2011 12:42 pm

Next

Return to Support

Who is online

Users browsing this forum: No registered users and 0 guests