You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Mike Yeates (JIRA)" <ji...@apache.org> on 2012/09/19 11:24:07 UTC

[jira] [Created] (CB-1500) Could not instantiate class named NSLayoutConstraint

Mike Yeates created CB-1500:
-------------------------------

             Summary: Could not instantiate class named NSLayoutConstraint
                 Key: CB-1500
                 URL: https://issues.apache.org/jira/browse/CB-1500
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 2.0.0
         Environment: OSX Mountain Lion, XCode 4.5
            Reporter: Mike Yeates
            Assignee: Shazron Abdullah
            Priority: Critical


I have created an empty project using the create tool, build completes with some warnings but crashes after launching in the simulator (iOS 5.1/6.0 iPhone) with the following error

2012-09-19 10:08:44.545 ShopAdmin[13026:c07] Multi-tasking -> Device: YES, App: YES
2012-09-19 10:08:44.550 ShopAdmin[13026:c07] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
*** First throw call stack:
(0x1a2022 0x207dcd6 0x14aa48 0x14a9b9 0x65a4a3 0x65a67b 0x65a383 0x55a16d 0x4001fc 0x400779 0x40099b 0x2943 0x337386 0x338274 0x347183 0x347c38 0x33b634 0x271fef5 0x176195 0xdaff2 0xd98da 0xd8d84 0xd8c9b 0x337c65 0x339626 0x2386 0x22b5 0x1)
terminate called throwing an exception(lldb)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1500) Could not instantiate class named NSLayoutConstraint

Posted by "Michal Mocny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464048#comment-13464048 ] 

Michal Mocny commented on CB-1500:
----------------------------------

I've not been able to repro this either, though I did not get xcode through the app store, has anyone done that?

Few clarifications:
- When you say updated to the git version, do you mean you that you cloned the project instead of downloading a release?
- How are you building and running, with the command line tools or through xcode?
- Sometimes when I open xcode, even with the project open, the build target is wrong and I need to change it.  Can you confirm the build target is the sample app you created?
- Are you using xcode to build non-cordova apps?  Does that work?
                
> Could not instantiate class named NSLayoutConstraint
> ----------------------------------------------------
>
>                 Key: CB-1500
>                 URL: https://issues.apache.org/jira/browse/CB-1500
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: OSX Mountain Lion, XCode 4.5
>            Reporter: Mike Yeates
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> I have created an empty project using the create tool, build completes with some warnings but crashes after launching in the simulator (iOS 5.1/6.0 iPhone) with the following error
> 2012-09-19 10:08:44.545 ShopAdmin[13026:c07] Multi-tasking -> Device: YES, App: YES
> 2012-09-19 10:08:44.550 ShopAdmin[13026:c07] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
> *** First throw call stack:
> (0x1a2022 0x207dcd6 0x14aa48 0x14a9b9 0x65a4a3 0x65a67b 0x65a383 0x55a16d 0x4001fc 0x400779 0x40099b 0x2943 0x337386 0x338274 0x347183 0x347c38 0x33b634 0x271fef5 0x176195 0xdaff2 0xd98da 0xd8d84 0xd8c9b 0x337c65 0x339626 0x2386 0x22b5 0x1)
> terminate called throwing an exception(lldb)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1500) Could not instantiate class named NSLayoutConstraint

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458937#comment-13458937 ] 

Shazron Abdullah commented on CB-1500:
--------------------------------------

No repro. The warnings might give a clue - post them please.
                
> Could not instantiate class named NSLayoutConstraint
> ----------------------------------------------------
>
>                 Key: CB-1500
>                 URL: https://issues.apache.org/jira/browse/CB-1500
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: OSX Mountain Lion, XCode 4.5
>            Reporter: Mike Yeates
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> I have created an empty project using the create tool, build completes with some warnings but crashes after launching in the simulator (iOS 5.1/6.0 iPhone) with the following error
> 2012-09-19 10:08:44.545 ShopAdmin[13026:c07] Multi-tasking -> Device: YES, App: YES
> 2012-09-19 10:08:44.550 ShopAdmin[13026:c07] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
> *** First throw call stack:
> (0x1a2022 0x207dcd6 0x14aa48 0x14a9b9 0x65a4a3 0x65a67b 0x65a383 0x55a16d 0x4001fc 0x400779 0x40099b 0x2943 0x337386 0x338274 0x347183 0x347c38 0x33b634 0x271fef5 0x176195 0xdaff2 0xd98da 0xd8d84 0xd8c9b 0x337c65 0x339626 0x2386 0x22b5 0x1)
> terminate called throwing an exception(lldb)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1500) Could not instantiate class named NSLayoutConstraint

Posted by "Mike Yeates (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469414#comment-13469414 ] 

Mike Yeates commented on CB-1500:
---------------------------------

The strange thing is that the program runs if run on the device but not the simulator
                
> Could not instantiate class named NSLayoutConstraint
> ----------------------------------------------------
>
>                 Key: CB-1500
>                 URL: https://issues.apache.org/jira/browse/CB-1500
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: OSX Mountain Lion, XCode 4.5
>            Reporter: Mike Yeates
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> I have created an empty project using the create tool, build completes with some warnings but crashes after launching in the simulator (iOS 5.1/6.0 iPhone) with the following error
> 2012-09-19 10:08:44.545 ShopAdmin[13026:c07] Multi-tasking -> Device: YES, App: YES
> 2012-09-19 10:08:44.550 ShopAdmin[13026:c07] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
> *** First throw call stack:
> (0x1a2022 0x207dcd6 0x14aa48 0x14a9b9 0x65a4a3 0x65a67b 0x65a383 0x55a16d 0x4001fc 0x400779 0x40099b 0x2943 0x337386 0x338274 0x347183 0x347c38 0x33b634 0x271fef5 0x176195 0xdaff2 0xd98da 0xd8d84 0xd8c9b 0x337c65 0x339626 0x2386 0x22b5 0x1)
> terminate called throwing an exception(lldb)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1500) Could not instantiate class named NSLayoutConstraint

Posted by "Mike Yeates (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466898#comment-13466898 ] 

Mike Yeates commented on CB-1500:
---------------------------------

I did use the create tool, it didnt work after using it or using todays 'git clone'
                
> Could not instantiate class named NSLayoutConstraint
> ----------------------------------------------------
>
>                 Key: CB-1500
>                 URL: https://issues.apache.org/jira/browse/CB-1500
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: OSX Mountain Lion, XCode 4.5
>            Reporter: Mike Yeates
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> I have created an empty project using the create tool, build completes with some warnings but crashes after launching in the simulator (iOS 5.1/6.0 iPhone) with the following error
> 2012-09-19 10:08:44.545 ShopAdmin[13026:c07] Multi-tasking -> Device: YES, App: YES
> 2012-09-19 10:08:44.550 ShopAdmin[13026:c07] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
> *** First throw call stack:
> (0x1a2022 0x207dcd6 0x14aa48 0x14a9b9 0x65a4a3 0x65a67b 0x65a383 0x55a16d 0x4001fc 0x400779 0x40099b 0x2943 0x337386 0x338274 0x347183 0x347c38 0x33b634 0x271fef5 0x176195 0xdaff2 0xd98da 0xd8d84 0xd8c9b 0x337c65 0x339626 0x2386 0x22b5 0x1)
> terminate called throwing an exception(lldb)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1500) Could not instantiate class named NSLayoutConstraint

Posted by "Mike Yeates (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464718#comment-13464718 ] 

Mike Yeates commented on CB-1500:
---------------------------------

1. Yes I cloned the git repo
2. I am building and running through XCode
3. The build target is set as [My App]>iPhone 6.0 Simulator
4. No I dont have any non Cordova apps

Ill try to create the project again using the create binary and Ill report back if that changes anything
                
> Could not instantiate class named NSLayoutConstraint
> ----------------------------------------------------
>
>                 Key: CB-1500
>                 URL: https://issues.apache.org/jira/browse/CB-1500
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: OSX Mountain Lion, XCode 4.5
>            Reporter: Mike Yeates
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> I have created an empty project using the create tool, build completes with some warnings but crashes after launching in the simulator (iOS 5.1/6.0 iPhone) with the following error
> 2012-09-19 10:08:44.545 ShopAdmin[13026:c07] Multi-tasking -> Device: YES, App: YES
> 2012-09-19 10:08:44.550 ShopAdmin[13026:c07] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
> *** First throw call stack:
> (0x1a2022 0x207dcd6 0x14aa48 0x14a9b9 0x65a4a3 0x65a67b 0x65a383 0x55a16d 0x4001fc 0x400779 0x40099b 0x2943 0x337386 0x338274 0x347183 0x347c38 0x33b634 0x271fef5 0x176195 0xdaff2 0xd98da 0xd8d84 0xd8c9b 0x337c65 0x339626 0x2386 0x22b5 0x1)
> terminate called throwing an exception(lldb)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1500) Could not instantiate class named NSLayoutConstraint

Posted by "Michal Mocny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472447#comment-13472447 ] 

Michal Mocny commented on CB-1500:
----------------------------------

Mike, I'm going to mark this closde since no one else is reproducing the same issues, especially since it runs fine on device.

If this is a legitimate issue, we can reopen it an investigate some more.  Consistant repro steps would also help -- especially if you can get it to happen on another device (if you have another one).

Good Luck.
                
> Could not instantiate class named NSLayoutConstraint
> ----------------------------------------------------
>
>                 Key: CB-1500
>                 URL: https://issues.apache.org/jira/browse/CB-1500
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: OSX Mountain Lion, XCode 4.5
>            Reporter: Mike Yeates
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> I have created an empty project using the create tool, build completes with some warnings but crashes after launching in the simulator (iOS 5.1/6.0 iPhone) with the following error
> 2012-09-19 10:08:44.545 ShopAdmin[13026:c07] Multi-tasking -> Device: YES, App: YES
> 2012-09-19 10:08:44.550 ShopAdmin[13026:c07] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
> *** First throw call stack:
> (0x1a2022 0x207dcd6 0x14aa48 0x14a9b9 0x65a4a3 0x65a67b 0x65a383 0x55a16d 0x4001fc 0x400779 0x40099b 0x2943 0x337386 0x338274 0x347183 0x347c38 0x33b634 0x271fef5 0x176195 0xdaff2 0xd98da 0xd8d84 0xd8c9b 0x337c65 0x339626 0x2386 0x22b5 0x1)
> terminate called throwing an exception(lldb)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1500) Could not instantiate class named NSLayoutConstraint

Posted by "Michal Mocny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13466825#comment-13466825 ] 

Michal Mocny commented on CB-1500:
----------------------------------

How were you creating the project if you weren't using the 'create' tool?  Also, did it work after using it?
                
> Could not instantiate class named NSLayoutConstraint
> ----------------------------------------------------
>
>                 Key: CB-1500
>                 URL: https://issues.apache.org/jira/browse/CB-1500
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: OSX Mountain Lion, XCode 4.5
>            Reporter: Mike Yeates
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> I have created an empty project using the create tool, build completes with some warnings but crashes after launching in the simulator (iOS 5.1/6.0 iPhone) with the following error
> 2012-09-19 10:08:44.545 ShopAdmin[13026:c07] Multi-tasking -> Device: YES, App: YES
> 2012-09-19 10:08:44.550 ShopAdmin[13026:c07] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
> *** First throw call stack:
> (0x1a2022 0x207dcd6 0x14aa48 0x14a9b9 0x65a4a3 0x65a67b 0x65a383 0x55a16d 0x4001fc 0x400779 0x40099b 0x2943 0x337386 0x338274 0x347183 0x347c38 0x33b634 0x271fef5 0x176195 0xdaff2 0xd98da 0xd8d84 0xd8c9b 0x337c65 0x339626 0x2386 0x22b5 0x1)
> terminate called throwing an exception(lldb)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-1500) Could not instantiate class named NSLayoutConstraint

Posted by "Mike Yeates (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13461359#comment-13461359 ] 

Mike Yeates commented on CB-1500:
---------------------------------

I have updated to the git version and I am not getting this same error anymore.  Instead I am getting this

2012-09-22 20:39:46.020 ShopAdmin[19939:c07] Multi-tasking -> Device: YES, App: YES
2012-09-22 20:39:46.063 ShopAdmin[19939:c07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "MainView" nib but the view outlet was not set.'
*** First throw call stack:
(0x145012 0x257ee7e 0x144deb 0x460f18 0x461418 0x461648 0x461882 0x3b0a25 0x3b0dbf 0x3b0f55 0x3b9f67 0x2c27 0x37d7b7 0x37dda7 0x37efab 0x390315 0x39124b 0x382cf8 0x33b0df9 0x33b0ad0 0xbabf5 0xba962 0xebbb6 0xeaf44 0xeae1b 0x37e7da 0x38065c 0x2506 0x2435 0x1)
libc++abi.dylib: terminate called throwing an exception

I have tried everything I can think of including reinstalling cordova, creating a new project and reinstalling XCode (I am using the version from the app store now).

I looked at the XIB file and the view outlet is set
                
> Could not instantiate class named NSLayoutConstraint
> ----------------------------------------------------
>
>                 Key: CB-1500
>                 URL: https://issues.apache.org/jira/browse/CB-1500
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: OSX Mountain Lion, XCode 4.5
>            Reporter: Mike Yeates
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> I have created an empty project using the create tool, build completes with some warnings but crashes after launching in the simulator (iOS 5.1/6.0 iPhone) with the following error
> 2012-09-19 10:08:44.545 ShopAdmin[13026:c07] Multi-tasking -> Device: YES, App: YES
> 2012-09-19 10:08:44.550 ShopAdmin[13026:c07] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
> *** First throw call stack:
> (0x1a2022 0x207dcd6 0x14aa48 0x14a9b9 0x65a4a3 0x65a67b 0x65a383 0x55a16d 0x4001fc 0x400779 0x40099b 0x2943 0x337386 0x338274 0x347183 0x347c38 0x33b634 0x271fef5 0x176195 0xdaff2 0xd98da 0xd8d84 0xd8c9b 0x337c65 0x339626 0x2386 0x22b5 0x1)
> terminate called throwing an exception(lldb)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (CB-1500) Could not instantiate class named NSLayoutConstraint

Posted by "Michal Mocny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-1500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michal Mocny closed CB-1500.
----------------------------

    Resolution: Cannot Reproduce
    
> Could not instantiate class named NSLayoutConstraint
> ----------------------------------------------------
>
>                 Key: CB-1500
>                 URL: https://issues.apache.org/jira/browse/CB-1500
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.0.0
>         Environment: OSX Mountain Lion, XCode 4.5
>            Reporter: Mike Yeates
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> I have created an empty project using the create tool, build completes with some warnings but crashes after launching in the simulator (iOS 5.1/6.0 iPhone) with the following error
> 2012-09-19 10:08:44.545 ShopAdmin[13026:c07] Multi-tasking -> Device: YES, App: YES
> 2012-09-19 10:08:44.550 ShopAdmin[13026:c07] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class named NSLayoutConstraint'
> *** First throw call stack:
> (0x1a2022 0x207dcd6 0x14aa48 0x14a9b9 0x65a4a3 0x65a67b 0x65a383 0x55a16d 0x4001fc 0x400779 0x40099b 0x2943 0x337386 0x338274 0x347183 0x347c38 0x33b634 0x271fef5 0x176195 0xdaff2 0xd98da 0xd8d84 0xd8c9b 0x337c65 0x339626 0x2386 0x22b5 0x1)
> terminate called throwing an exception(lldb)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira