johnno1962 / InjectionNext

Fourth evolution of Code Injection for Xcode
MIT License
77 stars 2 forks source link

1.2.6 RC5 cannot connect with either Xcode or Cursor #33

Closed diederikh closed 1 day ago

diederikh commented 1 week ago

When I try 1.2.6 RC5 with Xcode or Cursor I get an error in the logs when SwiftUI tries to inject:

InjectionClient/Could not connect: Connection refused
πŸ’‰ Not falling back to standalone HotReloading as you are using the β€˜Inject’ package. Use MenuBar app to control Injection status or opt in by using INJECTION_STANDALONE env var.

Running InjectIII for the same project works fine. Is a different port used for Next?

johnno1962 commented 1 week ago

Hi, you seem to be loading the InjectionIII client bundle with the InjectionNext app.

For InjectionIII you load "/Applications/InjectionIII.app/Contents/Resources/iOSInjection.bundle" and run the InjectionIII.app. For InjectionNext you don't load the bundle but use the InjectionNext Swift package instead with the InjectionNext app.

diederikh commented 1 week ago

Gotcha. I was using Krzysztof's Inject package. I'll try with the InjectionNext package. Should I also use HotSwiftUI or is that already part of the InjectionNext package?

diederikh commented 1 week ago

I've tried with the InjectNext package. The app connects now:

πŸ”₯ InjectionNext: iPhoneSimulator connection to app established, waiting for commands.
πŸ”₯ Platform connected: iPhoneSimulator

However updating an SwiftUI view yields this error:

πŸ”₯ Recompiling: /Users/diederik/Development/Medable/ios-app/App/PatientApp/Patient Journey/Views/ScheduleView.swift
πŸ”₯ ⚠️ Recompile failed for: /Users/diederik/Development/Medable/ios-app/App/PatientApp/Patient Journey/Views/ScheduleView.swift
<unknown>:0: error: unknown argument: '-driver-show-incremental'
<unknown>:0: error: unknown argument: '-driver-show-job-lifecycle'

πŸ”₯ ⚠️ Injection failed. Was your app connected?

Does it pick up the wrong swiftc? Running swiftc on the command line with -driver-show-incremental seems to work fine.

update: Cursor shows this error:

πŸ”₯ Current log: /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Logs/Build/C07D369B-EF43-46E0-98C2-EB528364C40A.xcactivitylog
πŸ”₯ ⚠️ Compiler output:
<unknown>:0: error: no such file or directory: '/Users/diederik/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation'
<unknown>:0: error: stat cache file '/Users/diederik/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.0-22A3362-db63dc9361471f152f572502bdbfe70a.sdkstatcache' not found
<unknown>:0: error: stat cache file '/Users/diederik/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.0-22A3362-db63dc9361471f152f572502bdbfe70a.sdkstatcache' not found
<unknown>:0: error: clang importer creation failed

πŸ”₯ ⚠️ Recompilation failed
πŸ”₯ ⚠️ Injection failed. Was your app connected?
johnno1962 commented 6 days ago

It uses the swiftc in the version of Xcode you select. Which version of Xcode are you using? The first error I can probably resolve quite easily by stripping out those options. The second error, another user has reported and I'd like to get to the bottom of. In the line previous to the "Current log:" value it should have listed the complete command line being executed. Are you able to email that to GitHub at johnholdsworth dot com or post it here? P.S. You can use Inject or HotSwiftUI.

diederikh commented 6 days ago

I'm using Xcode 16.0

Command: πŸ”₯ Recompiling /Users/diederik/Development/Medable/ios-app/App/PatientApp/Patient Journey/Views/ScheduleView.swift πŸ”₯ Processing command: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -c -filelist /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp.build/Objects-normal/arm64/sources-3 -primary-file /Users/diederik/Development/Medable/ios-app/App/PatientApp/Patient\ Journey/Views/ScheduleView.swift -supplementary-output-file-map /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp.build/Objects-normal/arm64/supplementaryOutputs-243 -target arm64-apple-ios15.0-simulator -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.0.sdk -I /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/PackageFrameworks -F /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator -F /Users/diederik/Development/Medable/ios-app/App -no-color-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -module-cache-path /Users/diederik/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -profile-generate -profile-coverage-mapping -warnings-as-errors -swift-version 5 -enforce-exclusivity\=checked -Onone -D DEBUG -D DEBUG -D ENABLE_ENVIRONMENT_PICKER -D MD_DETECT_JAILBREAK_DISABLE -debug-time-function-bodies -enable-actor-data-race-checks -serialize-debugging-options -load-plugin-executable /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug/CasePathsMacros\#CasePathsMacros -load-plugin-executable /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug/DependenciesMacrosPlugin\#DependenciesMacrosPlugin -const-gather-protocols-file /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp.build/Objects-normal/arm64/PatientApp_const_extract_protocols.json -enable-experimental-feature DebugDescriptionMacro -enable-experimental-feature OpaqueTypeErasure -enable-bare-slash-regex -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/diederik/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/diederik/Development/Medable/ios-app/App -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/diederik/Development/Medable/ios-app/App -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/GoogleUtilities-NSData.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/GoogleUtilities-Logger.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/GoogleUtilities-Environment.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/third-party-IsAppEncrypted.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/GoogleUtilities-UserDefaults.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/nanopb.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/GoogleDataTransport.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/FirebaseSessionsObjC.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/FirebaseCoreExtension.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/FirebaseInstallations.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/FirebaseCore.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/FirebaseCrashlytics.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/libPhoneNumber.modulemap -Xcc -fmodule-map-file\=/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/GeneratedModuleMaps-iphonesimulator/InjectionNextC.modulemap -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -ivfsstatcache -Xcc /Users/diederik/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.0-22A3362-db63dc9361471f152f572502bdbfe70a.sdkstatcache -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp.build/PatientApp-generated-files.hmap -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp.build/PatientApp-own-target-headers.hmap -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp.build/PatientApp-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp-48ae946882ebb4ed4cb565a622abf608-VFS-iphonesimulator/all-product-headers.yaml -Xcc -iquote -Xcc /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp.build/PatientApp-project-headers.hmap -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/GoogleUtilities/GoogleUtilities/NSData+zlib/Public -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/GoogleUtilities/GoogleUtilities/Logger/Public -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/GoogleUtilities/GoogleUtilities/Environment/Public -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/GoogleUtilities/third_party/IsAppEncrypted/Public -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/GoogleUtilities/GoogleUtilities/UserDefaults/Public -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/nanopb/spm_headers -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/promises/Sources/FBLPromises/include -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/GoogleDataTransport/GoogleDataTransport/GDTCORLibrary/Public -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/firebase-ios-sdk/FirebaseSessions/SourcesObjC -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/firebase-ios-sdk/FirebaseCore/Extension -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/firebase-ios-sdk/FirebaseInstallations/Source/Library/Public -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/firebase-ios-sdk/FirebaseCore/Sources/Public -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/firebase-ios-sdk/CoreOnly/Sources -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/Crashlytics/Public -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/libPhoneNumber-iOS/libPhoneNumber -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/SourcePackages/checkouts/InjectionNext/Sources/InjectionNextC/include -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Products/Debug-iphonesimulator/include -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp.build/DerivedSources-normal/arm64 -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp.build/DerivedSources/arm64 -Xcc -I/Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PatientApp.build/Debug-iphonesimulator/PatientApp.build/DerivedSources -Xcc -DDEBUG\=1 -Xcc -DENABLE_ENVIRONMENT_PICKER -import-objc-header /Users/diederik/Development/Medable/ios-app/App/PatientApp/Common/Axon-Bridging-Header.h -pch-output-dir /Users/diederik/Library/Developer/Xcode/DerivedData/PatientApp-ayeuifvcmyfvpjegerknexupddya/Build/Intermediates.noindex/PrecompiledHeaders -pch-disable-validation -module-name PatientApp -disable-clang-spi -target-sdk-version 18.0 -target-sdk-name iphonesimulator18.0 -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/swift/host/plugins\#/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/lib/swift/host/plugins\#/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server -plugin-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -index-system-modules -o /var/folders/tg/fwdjcwt50lld1776xdplg8580000gn/T/eval3.o

johnno1962 commented 6 days ago

Thanks for the log, I've created a new release candidate removing these spurious options if you'd like to give it a try https://github.com/johnno1962/InjectionNext/releases/tag/1.2.6RC6.

diederikh commented 6 days ago

That build fixed the Xcode issue. Cursor still fails with a different error. I'll email you the logs for the Cursor one.

johnno1962 commented 6 days ago

I wonder, can you try turning off the following build setting:

image
johnno1962 commented 6 days ago

I've uploaded a fix of sorts for this .pch problem: https://github.com/johnno1962/InjectionNext/releases/tag/1.2.6RC8

diederikh commented 4 days ago

After switching setting SWIFT_PRECOMPILE_BRIDGING_HEADER=NO it all works in Cursor with RC8. Thanks!

johnno1962 commented 4 days ago

Great! Thanks for getting back. With luck, RC8 should work even without that option turned off.