Skip to content

Updates for Xcode in 2024 #7

@zaddok

Description

@zaddok

Thank-you for creating this documentation. It looks like it's going to save me some time maintaining multiple copies of the same code. Surprisingly things mostly work the same as before. Just a few notes as I work through this.

  1. When creating the iOS project, the project options have different names. I chose "New Project", "iOS", "App". There might be a neater way to do this, but I updated the ContentView.swift file to have a testing() function that is called from the view code:
    // Add a testing() function to the ContentView.swift file
    func testing() -> String {
        lookup();
        let wl = wordlength("happy");
        let wc = wordcount(20);
        print("hello \(wl) \(wc)")
        return "hello";

    }

    var body: some View {
        VStack {
            Image(systemName: "globe")
                .imageScale(.large)
                .foregroundStyle(.tint)
            Text(testing()) // Get text from new test function
        }
        .padding()
    }
  1. The build script won't run unless you go to the "Build Settings" tab and find the "User Script Sandboxing" value and set it to "No"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions