Code Monkey home page Code Monkey logo

Comments (6)

Mozahler avatar Mozahler commented on August 23, 2024

The solution was much easier than I imagined, so I’d like to share it. I’m still interested in where best to ask questions about your development approach and how you solved obstacles along the way… But I’ll close this out to not clutter the Issues list.

Simply close all the tabs in the Xcode session. Then select the file you were trying to view. and tap “Try Again”. Magic!

from isowords.

Mozahler avatar Mozahler commented on August 23, 2024

Hmmm. It seems I didn't get very far after posting this. I'm not used to this ultra modularity you are so familiar with. I'm not hating it... But am still wrapping my head around it.

I want to view the preview found in GameNavView.swift using the Simulator set to iPhone 8
I switch to scheme GameCore (I see it in the file hierarchy).
"Try Again" produces "no such module DictionarySqliteClient"

I see a total of 4 imports: (no direct mention of an import of DictionarySqliteClient)

import ComposableArchitecture
import Styleguide
import SwiftUI

and inside an #IF DEBUG
import Overture

So I change the scheme to DictionarySqliteClient and build:
Preview provider "Game Nav View Previews" must belong to at least one target in the current scheme in order to use previews.

So back to GameCore, rebuild and hit Try Again:
No dice. "no such module DictionarySqliteClient" again....
Set scheme to isowords (the main scheme)
It can't find GameCore, so I build that but that doesn't work.
"no such module DictionarySqliteClient" again....

How do I preview GameNavView_Previews in GameNavView.swift?

from isowords.

stephencelis avatar stephencelis commented on August 23, 2024

@Mozahler Xcode previews can definitely be a bit flakey, but I was able to switch the scheme to GameCore and view that preview just fine, even after cleaning the build folder. Have you tried all the regular Xcode incantations?

  • Clean build
  • Delete derived data
  • Build target before building preview
  • Restart Xcode
  • Restart computer 😬
  • etc.?

from isowords.

stephencelis avatar stephencelis commented on August 23, 2024

Also, have you fully bootstrapped the application per the README? make bootstrap prepares some resources for targets like DictionarySqliteClient.

from isowords.

Mozahler avatar Mozahler commented on August 23, 2024

Yes. I performed the make bootstrap. In fact, I'm pretty far along in making a self-playing version... It's averaging around a 4500 score. I'm trying to figure out how to make it "play" -- tap out the letters using the nub until the lookaheads list is empty and then tapping "end game" (right now it just provides a sorted descending list of highest scoring words - you have to manually tap the words in). The list refreshes only when cubes are removed.
Perhaps the pieces I need are in the app clip portion of the project. Eventually, I'd like it to be able to play the entire game itself.

isowordsB.mp4

Love to hear any feedback.
Thanks

btw: I had issues with Appclip when I originally cloned the project, so I just now tried to reinstall everything from scratch. But still can't get the bundle id right - I've replaced your bundle strings with mine everywhere I can find a reference but still get - "This app ID does not include the parent app ID". I can't get the Appclip to compile.

from isowords.

Mozahler avatar Mozahler commented on August 23, 2024

Solved my app clip problem. The string in AppClip.entitlements was incorrect. (the indexing wasn't up to date so it wasn't showing up in my search as an issue)

My issues are solved, so I'm closing this. But still like to hear feedback. I'm learning so much about Swift and Architecture working with this code base. Kudos to both of you once again!

from isowords.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.