InjectionIII: Cant hotload swift code in swift and objective-c project.

image image image

💉 ⚠️ Could not locate compile command for /Users/showcode/dev/halo/Halo/Submodules/Social/Message/MessageUIKit/Classes/Message/ViewController/GroupStickyTopViewController.swift. This could be due to one of the following:

  1. Injection does not work with Whole Module Optimization. image show i have change it.

  2. There are restrictions on characters allowed in paths. the path is shown above.

  3. File paths in the simulator are case-sensitive.

  4. The modified source file is not in the current project.

it is in the halo dir.

  1. The source file is an XCTest that has not been run yet. no
  2. Xcode has removed the build logs. Edit a file and re-run. Try a build clean then rebuild to make logs available

the log is

search through build logs, most recent first

cd “/Users/showcode/Library/Developer/Xcode/DerivedData/Halo-axrbsmsutrbaqgdmboixjsumxtfe/Logs/Build” && for log in ls -t *.xcactivitylog; do #echo “Scanning $log” /usr/bin/env perl “/Users/showcode/Library/Developer/CoreSimulator/Devices/3A85C7DC-094D-4BFF-B1DD-E371D4A7E5EF/data/Containers/Data/Application/77AF9F48-0FBC-4630-8134-768F38DE062A/tmp/eval104.pl” “$log” >“/Users/showcode/Library/Developer/CoreSimulator/Devices/3A85C7DC-094D-4BFF-B1DD-E371D4A7E5EF/data/Containers/Data/Application/77AF9F48-0FBC-4630-8134-768F38DE062A/tmp/eval104.sh” 2>“/Users/showcode/Library/Developer/CoreSimulator/Devices/3A85C7DC-094D-4BFF-B1DD-E371D4A7E5EF/data/Containers/Data/Application/77AF9F48-0FBC-4630-8134-768F38DE062A/tmp/eval104.err” && exit 0 done exit 1;

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (10 by maintainers)

Most upvoted comments

Hi, can you tell me what version and version of Injection/Xcode/iOS this is? If it’s the App Store release can you download and try one of the binary releases on this repo? It’s likely to be an upper/lower casing issue or an issue with “special characters” such as (). Was this a Swift or Objective-C file? What is the full path to that file? Are you able to email the build log of your project and the eval104.pl file to github at johnholdsworth.com?