Upgrade to Xcode 8

This topic contains 13 replies, has 2 voices, and was last updated by  Mark 10 months ago.

  • September 26, 2016 at 12:26 am #156167

    I needed to upgrade to Xcode 8 with Story Teller Kit 2 version 1.14. I copied the .swift files and built the code. Although it does run, there are fifteen compiler warnings (Non-optional expression of type SKNode used in check for optionals) in Page_Gestures_Touches.swift, Element.swift and Page_Textures.swift.

    One other part was affected, my Events, where I have “Hide”, do not hide the items at start up anymore.

    I’m sure I could try to figure this out but wonder if this is a known issue with version 1.14.

    Mark

  • September 26, 2016 at 8:49 am #156172

    Ah those warnings. Yeah, slight difference between the Demo and Clean Copy. I’ll upload a new Clean copy. But you can just take Page_Gestures, Element.swift and Page_Textures.swift from the Demo copy and use those. They have those warnings muted. Its a harmless warning though. If its yellow, let it mellow =)

    EDIT – Figured out the Hide thing. Look for an update in a moment! Its in the main Page class.

  • September 26, 2016 at 11:37 am #156181

    What about all this extra output information I see in the output window (ran it for iPad Air Simulator):

    objc[5969]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x1213b1910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x1211db210). One of the two will be used. Which one is undefined.
    2016-09-26 09:26:39.145340 StoryTellersKit2[5969:2578786] bundleid: com.YOURID, enable_level: 0, persist_level: 0, propagate_with_activity: 0
    2016-09-26 09:26:39.184731 StoryTellersKit2[5969:2578786] subsystem: com.apple.siri, category: Intents, enable_level: 1, persist_level: 1, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
    2016-09-26 09:26:39.268368 StoryTellersKit2[5969:2579623] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
    2016-09-26 09:26:39.270457 StoryTellersKit2[5969:2579623] subsystem: com.apple.UIKit, category: HIDEventIncoming, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
    2016-09-26 09:26:39.411403 StoryTellersKit2[5969:2579619] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
    2016-09-26 09:26:39.441257 StoryTellersKit2[5969:2578786] subsystem: com.apple.UIKit, category: StatusBar, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
    2016-09-26 09:26:39.444345 StoryTellersKit2[5969:2578786] subsystem: com.apple.BackBoardServices.fence, category: App, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
    2016-09-26 09:26:40.030560 StoryTellersKit2[5969:2579773] subsystem: com.apple.Accessibility, category: SpeechManager, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
    2016-09-26 09:26:40.031299 StoryTellersKit2[5969:2579773] [SpeechManager] -[AXSpeechManager _initialize]:339 Synthesizer created: <TTSSpeechSynthesizer: 0x60800010e460>
    2016-09-26 09:26:40.032549 StoryTellersKit2[5969:2579773] [SpeechManager] -[AXSpeechManager _dispatchSpeechAction:]:657 AXSpeech Should queue: -> 0
    2016-09-26 09:26:40.033296 StoryTellersKit2[5969:2579773] [SpeechManager] -[AXSpeechManager _dispatchSpeechAction:]:667 Telling synthesizer to stop because this job doesn’t want to queue
    2016-09-26 09:26:40.034595 StoryTellersKit2[5969:2579773] [SpeechManager] -[AXSpeechManager _dispatchSpeechAction:]:675 isSpeaking: 0
    2016-09-26 09:26:40.035638 StoryTellersKit2[5969:2579773] [SpeechManager] -[AXSpeechManager _dispatchSpeechAction:]:676 Speech queue items: (
    “<AXSpeechAction: 0x61000015c510> :Pitch 1.000000 : Language: (null), IPA phonemes: (null)”
    )
    2016-09-26 09:26:40.036614 StoryTellersKit2[5969:2579773] [SpeechManager] -[AXSpeechManager _dispatchSpeechAction:]:679 Starting next job
    2016-09-26 09:26:40.037244 StoryTellersKit2[5969:2579773] [SpeechManager] -[AXSpeechManager _startNextSpeechJob]:562 AXSpeech Will speak: 496600000.037102
    2016-09-26 09:26:40.038142 StoryTellersKit2[5969:2579773] [SpeechManager] -[AXSpeechManager speechSynthesizer:didFinishSpeakingRequest:successfully:withError:]:831 AXSpeech Speech finished: 1 (null)
    2016-09-26 09:26:40.038604 StoryTellersKit2[5969:2579773] [SpeechManager] -[AXSpeechManager _speechJobFinished:action:]:510 Removing from queue: <AXSpeechAction: 0x61000015c510> :Pitch 1.000000 : Language: (null), IPA phonemes: (null)
    2016-09-26 09:26:40.039145 StoryTellersKit2[5969:2579773] [SpeechManager] -[AXSpeechManager _speechJobFinished:action:]:513 Remaining queue: (
    )
    Sound1.caf
    2016-09-26 09:26:40.073 StoryTellersKit2[5969:2578786] SKAction: Error loading sound resource: “Sound1.caf”
    2016-09-26 09:26:40.087036 StoryTellersKit2[5969:2578786] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/markkeller/Library/Developer/CoreSimulator/Devices/29C3EAE3-8A21-4803-875F-83ACD73AD01B/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
    2016-09-26 09:26:40.110798 StoryTellersKit2[5969:2578786] [MC] Reading from private effective user settings.
    2016-09-26 09:26:40.158080 StoryTellersKit2[5969:2578786] subsystem: com.apple.BackBoardServices.fence, category: Workspace, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
    2016-09-26 09:26:40.161818 StoryTellersKit2[5969:2578786] subsystem: com.apple.UIKit, category: Touch, enable_level: 0, persist_level: 0, default_ttl: 1, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0

  • September 26, 2016 at 4:00 pm #156197

    Where can I find the update for Hide?

    • September 26, 2016 at 11:54 pm #156207

      I just replaced the current Swift 3, so redownload those again.

      And the Output window always spits out whatever it wants that day in the Simulator. Unless you see a crash, its not worth paying much attention to it. A lot of it is stuff Apple’s engineers just throw in as notes for us / themselves / moon people. Who knows.

  • September 27, 2016 at 12:43 am #156208

    Awesome! Thanks!

  • September 27, 2016 at 12:22 pm #156236

    I downloaded and tested but still “Hide” doesn’t work. I went through the modified dates on the files and don’t see any recent update (the last one was updated on 9/15). Is there a delay in the files being replaced by AWS?

  • September 28, 2016 at 4:41 pm #156356

    Am I missing something? I went to http://cartoonsmart.com/story-tellers-kit-2-the-latest-version/ and downloaded but the files are not updated.

  • September 29, 2016 at 2:00 pm #156413

    I updated the Page.swift code and replaced self.hideNodeArray.append(node) with node.isHidden = true – now it works fine.

    I downloaded the latest update and it still isn’t updated as Page.swift code is the same and the date stamp is August 23.

    Not sure why the current code loops through all the nodes to find the matching node.

  • September 30, 2016 at 3:05 pm #156471

    Okay, now the download has the updated files and this download includes the StoryTellersKitTV (which it didn’t include before).

    Thanks!

  • September 30, 2016 at 5:33 pm #156474

    Ah, I thought that was the issue: hideNodeArray was commented out on the old version.

    Works now!

You must be logged in to reply to this topic.