Skip to content

Setting up for macOS app dev #487

Description

@hboon

I've been able to use InjectionIII for iOS apps running on the simulator previously. However I can't figure out how to make it work for macOS apps. With and without InjectionIII running, I get something like this that mentions bazel.

InjectionClient/Could not connect: Operation not permitted
🔥 Unable to connect to InjectionIII app, falling back to standalone HotReloading.
<SwiftEval: 0x123604440>.deinit()
🔥 Standalone HotReloading available for sources under ["/Users/hboon"]

🔥 ⚠️ Locating response file failed (see: /Users/hboon/Library/Containers/com.motionobj.disksweeper/Data/tmp/command.sh)
/Users/hboon/Library/Containers/com.motionobj.disksweeper/Data/tmp/command.sh: line 2: cd: /Users/hboon/Documents/bazel-out/../external/build_bazel_rules_swift: No such file or directory
Checking patch tools/worker/swift_runner.cc...
error: tools/worker/swift_runner.cc: No such file or directory
Checking patch tools/worker/swift_runner.h...
error: tools/worker/swift_runner.h: No such file or directory

I'm using the Inject package. I have tried with and without the HotReloading package. Have tried with and without running "Prepare Project". Have tried installing bazel. Have tried the Run Script phase for iOS (like described in the README). Have tried loading the bundle in code.

I use XcodeGen and not tuist, nor bazel for the project, if it matters. Have also renamed project.yml so it shouldn't accidentally trigger any checks.

Help :) 😭

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