Trouble building a completely fresh project


#1

Hi everyone.

Firstly, apologies in advance if this is obvious.

I have just tried creating a completely fresh project, running 'motion create

I assumed that this would setup the bare bones of an app, so running ‘rake build’ would produce a black screen in the simulator.

However, when I do this I get an error.

I would like to understand why, so I can move forward and actually start creating some apps and playing around more.

I have pasted the output of ‘rake build trace’ beloe.

** Invoke build (first_time)
** Invoke build:simulator (first_time)
** Execute build:simulator
rm -f ./build/iPhoneSimulator-11.4-Development/pomodoro_motion.app/Info.plist
“/Applications/Xcode.app/Contents/Developer/usr/bin/actool” --output-format human-readable-text --notices --warnings --platform iphoneos --minimum-deployment-target 11.4 --target-device iphone --target-device ipad --app-icon ‘AppIcon’ --launch-image ‘LaunchImage’ --output-partial-info-plist ‘/Users/jen/dev/rubymotion/projects/pomodoro/pomodoro_motion/build/iPhoneSimulator-11.4-Development/AssetCatalog-Info.plist’ --compress-pngs --compile “/Users/jen/dev/rubymotion/projects/pomodoro/pomodoro_motion/build/iPhoneSimulator-11.4-Development/pomodoro_motion.app” “/Users/jen/dev/rubymotion/projects/pomodoro/pomodoro_motion/resources/Assets.xcassets”
sh: line 1: 2324 Abort trap: 6 “/Applications/Xcode.app/Contents/Developer/usr/bin/actool” --output-format human-readable-text --notices --warnings --platform iphoneos --minimum-deployment-target 11.4 --target-device iphone --target-device ipad --app-icon ‘AppIcon’ --launch-image ‘LaunchImage’ --output-partial-info-plist ‘/Users/jen/dev/rubymotion/projects/pomodoro/pomodoro_motion/build/iPhoneSimulator-11.4-Development/AssetCatalog-Info.plist’ --compress-pngs --compile “/Users/jen/dev/rubymotion/projects/pomodoro/pomodoro_motion/build/iPhoneSimulator-11.4-Development/pomodoro_motion.app” “/Users/jen/dev/rubymotion/projects/pomodoro/pomodoro_motion/resources/Assets.xcassets” 2>&1
2018-06-23 21:01:20.011 ibtoold[2324:28639] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration (/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework), error = Error Domain=NSCocoaErrorDomain Code=3587 “dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found” UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSDebugDescription=dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedDescription=The bundle “IDEInterfaceBuilderCocoaTouchIntegration” couldn’t be loaded because it is damaged or missing necessary resources.}, dyldError = dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, 0): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found
2018-06-23 21:01:20.012 ibtoold[2324:28639] [MT] DVTPlugInExtensionFaulting: Failed to fire fault for extension Xcode.InterfaceBuilderKit.iOSIntegration.Singletons: Error Domain=DVTPlugInErrorDomain Code=2 “Loading a plug-in failed.” UserInfo={DVTPlugInIdentifierErrorKey=com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., DVTPlugInDYLDErrorMessageErrorKey=dlopen(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, 0): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found, NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedFailureReason=The plug-in “com.apple.dt.IDE.IDEInterfaceBuilderCocoaTouchIntegration” at path “/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework” could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7ff626ce4ac0 {Error Domain=NSCocoaErrorDomain Code=3587 “dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found” UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration, NSDebugDescription=dlopen_preflight(/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework/IDEInterfaceBuilderCocoaTouchIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/SimulatorKit.framework/Versions/A/SimulatorKit
Reason: image not found, NSBundlePath=/Applications/Xcode.app/Contents/PlugIns/IDEInterfaceBuilderCocoaTouchIntegration.framework, NSLocalizedDescription=The bundle “IDEInterfaceBuilderCocoaTouchIntegration” couldn’t be loaded because it is damaged or missing necessary resources.}}}
2018-06-23 21:01:20.014 ibtoold[2324:28639] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Error getting value for parameter key ‘name’ of extension ‘Xcode.InterfaceBuilderKit.iOSIntegration.Singletons’ in plug-in ‘com.apple.dt.IDE.IDEInterfaceBuilderiOSIntegration’’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff4518932b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff6c2f3c76 objc_exception_throw + 48
2 DVTFoundation 0x000000010d6fc905 -[DVTExtensionParameter valueForKey:error:] + 0
3 IDEInterfaceBuilderKit 0x000000010ce990d8 -[IBScopedSingletonRegistry init] + 722
4 IDEInterfaceBuilderKit 0x000000010ce98dec __43+[IBScopedSingletonRegistry sharedInstance]_block_invoke + 41
5 libdispatch.dylib 0x00007fff6ced3db8 _dispatch_client_callout + 8
6 libdispatch.dylib 0x00007fff6ced3d6b dispatch_once_f + 41
7 IDEInterfaceBuilderKit 0x000000010ce98dc0 +[IBScopedSingletonRegistry sharedInstance] + 45
8 IDEInterfaceBuilderKit 0x000000010ccb4a2e -[IBInterfaceBuilderPlugin init] + 146
9 IDEInterfaceBuilderKit 0x000000010ccb4982 +[IBInterfaceBuilderPlugin ide_initializeWithOptions:error:] + 34
10 IDEFoundation 0x000000010e066118 _IDEInitializeOnePlugInAndPrerequisites + 2324
11 IDEFoundation 0x000000010e065a1f _IDEInitializeOnePlugInAndPrerequisites + 539
12 IDEFoundation 0x000000010e065a1f _IDEInitializeOnePlugInAndPrerequisites + 539
13 IDEFoundation 0x000000010e064243 _IDEInitializePlugIns + 1607
14 IDEFoundation 0x000000010e063650 IDEInitialize + 8470
15 ibtoold 0x000000010c99e6bc IBIDEInitialize + 52
16 ibtoold 0x000000010c99d84f main + 1713
17 libdyld.dylib 0x00007fff6cf0d015 start + 1
18 ??? 0x000000000000001a 0x0 + 26
)
libc++abi.dylib: terminating with uncaught exception of type NSException
rake aborted!
Failed to execute: “/Applications/Xcode.app/Contents/Developer/usr/bin/actool” --output-format human-readable-text --notices --warnings --platform iphoneos --minimum-deployment-target 11.4 --target-device iphone --target-device ipad --app-icon ‘AppIcon’ --launch-image ‘LaunchImage’ --output-partial-info-plist ‘/Users/jen/dev/rubymotion/projects/pomodoro/pomodoro_motion/build/iPhoneSimulator-11.4-Development/AssetCatalog-Info.plist’ --compress-pngs --compile “/Users/jen/dev/rubymotion/projects/pomodoro/pomodoro_motion/build/iPhoneSimulator-11.4-Development/pomodoro_motion.app” “/Users/jen/dev/rubymotion/projects/pomodoro/pomodoro_motion/resources/Assets.xcassets”
/Library/RubyMotion/lib/motion/project/builder.rb:610:in silent_execute_and_capture' /Library/RubyMotion/lib/motion/project/builder.rb:646:incompile_asset_bundles’
/Library/RubyMotion/lib/motion/project/builder.rb:413:in build' /Library/RubyMotion/lib/motion/project/app.rb:78:inbuild’
/Users/jen/.rubymotion/rubymotion-templates/motion/project/template/ios.rb:69:in block (2 levels) in <top (required)>' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:inblock in execute’
/Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in each' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:inexecute’
/Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:213:in block in invoke_with_call_chain' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/2.5.0/monitor.rb:226:inmon_synchronize’
/Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:193:in invoke_with_call_chain' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:237:inblock in invoke_prerequisites’
/Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:235:in each' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:235:ininvoke_prerequisites’
/Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:212:in block in invoke_with_call_chain' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/2.5.0/monitor.rb:226:inmon_synchronize’
/Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:193:in invoke_with_call_chain' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:182:ininvoke’
/Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:160:in invoke_task' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:inblock (2 levels) in top_level’
/Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in each' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:inblock in top_level’
/Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:125:in run_with_threads' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:110:intop_level’
/Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:83:in block in run' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:186:instandard_exception_handling’
/Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:80:in run' /Users/jen/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/exe/rake:27:in<top (required)>’
/Users/jen/.rbenv/versions/2.5.1/bin/rake:23:in load' /Users/jen/.rbenv/versions/2.5.1/bin/rake:23:in
Tasks: TOP => build => build:simulator

I have tried runing ‘xcode-select --reset’, updating my gems, and re-creating the project from scratch, after removing the original.

Any advice/assistance is very much appreciated.

Thanks in advance,
Jen!


#2

Make sure you’ve opened Xcode at least once and you’ve run sudo xcode-select --reset in the terminal.