POST
|
Hello everyone, I copy the example in the tutorial of arcgis runtime for osx, but the xcode 7 shows some errors. I don't know why. I use swift api. But when I run the example which is taken by arcgis runtime for osx, it goes well. (The example in runtime package is using oc language) Anybody can help me???thanks 2016-05-22 20:52:18.521 MyFirstGISApp[33507:28179768] An uncaught exception was raised 2016-05-22 20:52:18.521 MyFirstGISApp[33507:28179768] Unable to install constraint on view. Does the constraint reference something from outside the subtree of the view? That's illegal. constraint:<NSIBPrototypingLayoutConstraint:0x618000084f10 'IB auto generated at build time for view with fixed frame' AGSMapView:0x102608b60.left == NSView:0x610000120280.left + 25> view:<NSView: 0x610000120280> 2016-05-22 20:52:18.522 MyFirstGISApp[33507:28179768] ( 0 CoreFoundation 0x00007fff8da2c4f2 __exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff91218f7e objc_exception_throw + 48 2 CoreFoundation 0x00007fff8da934bd +[NSException raise:format:] + 205 3 Foundation 0x00007fff9a4e5a59 -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 183 4 AppKit 0x00007fff8ef381bd __52-[NSView(NSConstraintBasedLayout) _setLayoutEngine:]_block_invoke_2 + 470 5 Foundation 0x00007fff9a4ec042 -[NSISEngine withBehaviors:performModifications:] + 155 6 AppKit 0x00007fff8eea3b8e -[NSView(NSConstraintBasedLayout) _withAutomaticEngineOptimizationDisabled:] + 70 7 AppKit 0x00007fff8ef37fca __52-[NSView(NSConstraintBasedLayout) _setLayoutEngine:]_block_invoke + 485 8 AppKit 0x00007fff8eeae8f2 -[NSView(NSConstraintBasedLayout) _setLayoutEngine:] + 233 9 AppKit 0x00007fff8ef380bf __52-[NSView(NSConstraintBasedLayout) _setLayoutEngine:]_block_invoke_2 + 216 10 Foundation 0x00007fff9a4ec042 -[NSISEngine withBehaviors:performModifications:] + 155 11 AppKit 0x00007fff8eea3b8e -[NSView(NSConstraintBasedLayout) _withAutomaticEngineOptimizationDisabled:] + 70 12 AppKit 0x00007fff8ef37fca __52-[NSView(NSConstraintBasedLayout) _setLayoutEngine:]_block_invoke + 485 13 AppKit 0x00007fff8eeae8f2 -[NSView(NSConstraintBasedLayout) _setLayoutEngine:] + 233 14 AppKit 0x00007fff8f63fd5c -[NSThemeFrame _setLayoutEngine:] + 69 15 AppKit 0x00007fff8ef37dca make_and_host_engine + 335 16 AppKit 0x00007fff8ef37968 -[NSView(NSConstraintBasedLayout) _didChangeHostsAutolayoutEngineTo:] + 179 17 AppKit 0x00007fff8ef1469a -[NSView(NSConstraintBasedLayout) _engageAutolayout] + 81 18 AppKit 0x00007fff8ef146b7 -[NSView(NSConstraintBasedLayout) _engageAutolayout] + 110 19 AppKit 0x00007fff8eeda5be -[NSView(NSConstraintBasedLayout) _layoutEngine_windowDidChange] + 92 20 AppKit 0x00007fff8eeda43b __21-[NSView _setWindow:]_block_invoke586 + 67 21 AppKit 0x00007fff8eea590c -[NSView _setWindow:] + 1567 22 AppKit 0x00007fff8eea2933 -[NSView addSubview:] + 475 23 AppKit 0x00007fff8eee0a1a -[NSFrameView addSubview:] + 45 24 AppKit 0x00007fff8eee09e0 -[NSThemeFrame addSubview:] + 400 25 AppKit 0x00007fff8eee0600 -[NSView addSubview:positioned:relativeTo:] + 211 26 AppKit 0x00007fff8eee051a -[NSThemeFrame _addKnownSubview:positioned:relativeTo:] + 60 27 AppKit 0x00007fff8ef0a708 -[NSWindow setContentView:] + 638 28 AppKit 0x00007fff8ef4ef5f -[NSWindowTemplate nibInstantiate] + 854 29 AppKit 0x00007fff8ee925af -[NSIBObjectData instantiateObject:] + 309 30 AppKit 0x00007fff8ee91c33 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 428 31 AppKit 0x00007fff8ee88e91 loadNib + 384 32 AppKit 0x00007fff8ee883b7 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 300 33 AppKit 0x00007fff8ee88180 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201 34 AppKit 0x00007fff8ee87f4c +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 344 35 AppKit 0x00007fff8ee831a6 NSApplicationMain + 466 36 MyFirstGISApp 0x0000000100002f84 main + 84 37 libdyld.dylib 0x00007fff9f4075ad start + 1 38 ??? 0x0000000000000003 0x0 + 3 ) 2016-05-22 20:52:18.601 MyFirstGISApp[33507:28179768] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'Unable to install constraint on view. Does the constraint reference something from outside the subtree of the view? That's illegal. constraint:<NSIBPrototypingLayoutConstraint:0x618000084f10 'IB auto generated at build time for view with fixed frame' AGSMapView:0x102608b60.left == NSView:0x610000120280.left + 25> view:<NSView: 0x610000120280>' *** First throw call stack: ( 0 CoreFoundation 0x00007fff8da2c4f2 __exceptionPreprocess + 178 1 libobjc.A.dylib 0x00007fff91218f7e objc_exception_throw + 48 2 CoreFoundation 0x00007fff8da934bd +[NSException raise:format:] + 205 3 Foundation 0x00007fff9a4e5a59 -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 183 4 AppKit 0x00007fff8ef381bd __52-[NSView(NSConstraintBasedLayout) _setLayoutEngine:]_block_invoke_2 + 470 5 Foundation 0x00007fff9a4ec042 -[NSISEngine withBehaviors:performModifications:] + 155 6 AppKit 0x00007fff8eea3b8e -[NSView(NSConstraintBasedLayout) _withAutomaticEngineOptimizationDisabled:] + 70 7 AppKit 0x00007fff8ef37fca __52-[NSView(NSConstraintBasedLayout) _setLayoutEngine:]_block_invoke + 485 8 AppKit 0x00007fff8eeae8f2 -[NSView(NSConstraintBasedLayout) _setLayoutEngine:] + 233 9 AppKit 0x00007fff8ef380bf __52-[NSView(NSConstraintBasedLayout) _setLayoutEngine:]_block_invoke_2 + 216 10 Foundation 0x00007fff9a4ec042 -[NSISEngine withBehaviors:performModifications:] + 155 11 AppKit 0x00007fff8eea3b8e -[NSView(NSConstraintBasedLayout) _withAutomaticEngineOptimizationDisabled:] + 70 12 AppKit 0x00007fff8ef37fca __52-[NSView(NSConstraintBasedLayout) _setLayoutEngine:]_block_invoke + 485 13 AppKit 0x00007fff8eeae8f2 -[NSView(NSConstraintBasedLayout) _setLayoutEngine:] + 233 14 AppKit 0x00007fff8f63fd5c -[NSThemeFrame _setLayoutEngine:] + 69 15 AppKit 0x00007fff8ef37dca make_and_host_engine + 335 16 AppKit 0x00007fff8ef37968 -[NSView(NSConstraintBasedLayout) _didChangeHostsAutolayoutEngineTo:] + 179 17 AppKit 0x00007fff8ef1469a -[NSView(NSConstraintBasedLayout) _engageAutolayout] + 81 18 AppKit 0x00007fff8ef146b7 -[NSView(NSConstraintBasedLayout) _engageAutolayout] + 110 19 AppKit 0x00007fff8eeda5be -[NSView(NSConstraintBasedLayout) _layoutEngine_windowDidChange] + 92 20 AppKit 0x00007fff8eeda43b __21-[NSView _setWindow:]_block_invoke586 + 67 21 AppKit 0x00007fff8eea590c -[NSView _setWindow:] + 1567 22 AppKit 0x00007fff8eea2933 -[NSView addSubview:] + 475 23 AppKit 0x00007fff8eee0a1a -[NSFrameView addSubview:] + 45 24 AppKit 0x00007fff8eee09e0 -[NSThemeFrame addSubview:] + 400 25 AppKit 0x00007fff8eee0600 -[NSView addSubview:positioned:relativeTo:] + 211 26 AppKit 0x00007fff8eee051a -[NSThemeFrame _addKnownSubview:positioned:relativeTo:] + 60 27 AppKit 0x00007fff8ef0a708 -[NSWindow setContentView:] + 638 28 AppKit 0x00007fff8ef4ef5f -[NSWindowTemplate nibInstantiate] + 854 29 AppKit 0x00007fff8ee925af -[NSIBObjectData instantiateObject:] + 309 30 AppKit 0x00007fff8ee91c33 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 428 31 AppKit 0x00007fff8ee88e91 loadNib + 384 32 AppKit 0x00007fff8ee883b7 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 300 33 AppKit 0x00007fff8ee88180 -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 201 34 AppKit 0x00007fff8ee87f4c +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 344 35 AppKit 0x00007fff8ee831a6 NSApplicationMain + 466 36 MyFirstGISApp 0x0000000100002f84 main + 84 37 libdyld.dylib 0x00007fff9f4075ad start + 1 38 ??? 0x0000000000000003 0x0 + 3 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)
... View more
05-22-2016
05:55 AM
|
0
|
0
|
5867
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|