Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

真机无法热更 #101

Closed
h4acda opened this issue Dec 3, 2024 · 1 comment
Closed

真机无法热更 #101

h4acda opened this issue Dec 3, 2024 · 1 comment

Comments

@h4acda
Copy link

h4acda commented Dec 3, 2024

Broadcasting to en2.10:169.254.255.255 to locate InjectionIII host...
Broadcasting to en0.14:192.168.1.255 to locate InjectionIII host...
💉 Connecting to 192.168.1.245 (169.254.129.194)...
💉 InjectionIII connected /Volumes/公司固态/Documents/h4test/h4test.xcworkspace
💉 Watching files under the directory /Volumes/公司固态/Documents/h4test
💉 💉 ⚠️ Your project file seems to be in the Desktop or Documents folder and may prevent InjectionIII working as it has special permissions.
💉 Compiling /Volumes/公司固态/Documents/h4test/h4test/Controllers/ViewController.swift
💉 Loading .dylib ...
💉 ⚠️ dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval101.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval101.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval101.dylib' (mach-o file (/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval101.dylib), but incompatible platform (have (iOS-sim), need (iOS)))
💉 ⚠️ Clean build folder when switching platform
💉 ⚠️ Injection error: Error Domain=SwiftEval Code=-1 "dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval101.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval101.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval101.dylib' (mach-o file (/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval101.dylib), but incompatible platform (have (iOS-sim), need (iOS)))
💉 ⚠️ Clean build folder when switching platform" UserInfo={NSLocalizedDescription=dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval101.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval101.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval101.dylib' (mach-o file (/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval101.dylib), but incompatible platform (have (iOS-sim), need (iOS)))
💉 ⚠️ Clean build folder when switching platform}
💉 Compiling /Volumes/公司固态/Documents/h4test/h4test/Controllers/ViewController.swift
💉 Loading .dylib ...
💉 ⚠️ dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval102.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval102.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval102.dylib' (mach-o file (/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval102.dylib), but incompatible platform (have (iOS-sim), need (iOS)))
💉 ⚠️ Clean build folder when switching platform
💉 ⚠️ Injection error: Error Domain=SwiftEval Code=-1 "dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval102.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval102.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval102.dylib' (mach-o file (/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval102.dylib), but incompatible platform (have (iOS-sim), need (iOS)))
💉 ⚠️ Clean build folder when switching platform" UserInfo={NSLocalizedDescription=dlopen() error: dlopen(/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval102.dylib, 0x0002): tried: '/usr/lib/system/introspection/eval102.dylib' (no such file), '/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval102.dylib' (mach-o file (/private/var/mobile/Containers/Data/Application/304DE21E-9FE6-40A9-BAD5-4F5E798631F1/tmp/eval102.dylib), but incompatible platform (have (iOS-sim), need (iOS)))
💉 ⚠️ Clean build folder when switching platform}

@johnno1962
Copy link
Owner

johnno1962 commented Dec 3, 2024

Hi, this happens when you switch from build for a simulator to building for a real device. Close your project to clear the logs then re-open it and build it for the device and it should choose the correct logs and rm /tmp/*_builds.plist to clear the cache.

@h4acda h4acda closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants