Comments (13)
It's a warning.
from hotreloading.
When you say "doesn't seem to work" what happens/doesn't happen. Does the menu bar app run? Does it connect (icon goes orange)? Is there an error message you could tell me?
from hotreloading.
@johnno1962 Sorry about the confusion. It was simply that my code change didn't get updated right away when I tried with AppCode. But, I realized that I didn't set up the injected function nor notification. It is working now.
from hotreloading.
@johnno1962 Ha.. I'm getting confused with the whole thing. I thought HotReloading was working but it was a separate issue that caused a confusion for me. I see this error message when I save the Swift file from AppCode:
🔥 Loading .dylib ...
objc[18470]: Class _TtC12MightybellUI23SpaceChatViewController is implemented in both /Users/saim/Library/Caches/JetBrains/AppCode2021.2/DerivedData/MightybellApp-ailkgvaqfypilmgiumlvwalytxms/Build/Products/Debug-iphonesimulator/MightybellUI.framework/MightybellUI (0x107505918) and /Users/saim/Library/Developer/CoreSimulator/Devices/017B587A-8521-429E-9203-E48076FA33D4/data/Containers/Data/Application/4CCB7923-E926-42FB-9412-26F84FA1AF19/tmp/eval117.dylib (0x123b3a628). One of the two will be used. Which one is undefined.
🔥 Loaded .dylib - Ignore any duplicate class warning ⬆️
🔥 Injected class 'MightybellUI.SpaceChatViewController' (8,6)
from hotreloading.
Oh.. Before this, I also had to not only link but also embed HotReloading library to make a crash go away. That crash didn't happen for Xcode.
from hotreloading.
Here's the message from the crash
dyld: Library not loaded: @rpath/HotReloading.framework/HotReloading
Referenced from: /Users/saim/Library/Developer/CoreSimulator/Devices/017B587A-8521-429E-9203-E48076FA33D4/data/Containers/Bundle/Application/698190B8-4336-4109-AA04-F1DE6DEB2A7B/MN Staging Navigation.app/MN Staging Navigation
Reason: image not found
from hotreloading.
My issue was linker flag misconfiguration. Sorry about the noise!
from hotreloading.
👍
from hotreloading.
@johnno1962 First of all thanks for such a great job supporting this project!
Not sure if I'm doing something wrong or what but, I do have my project using HotReloading
and it works great on Xcode 14.1 however when I open the same project using AppCode
( and specify the same Xcode version within Tools > Xcode ) as soon as I update any file I get a Re-compilation failed
message.
Am I missing something?
from hotreloading.
Hi, I don't know. Can you tell me a little bit more detail of the exact message you're seeing? Have you checked the command.sh script file it mentions to see if it is valid? HotReloading as a package is slowly being phased out in favour of just loading the iOSInjection.bundle from the app but not running the app a.k.a. "Standalone Injection" (if you're allowed to use the binary releases). Perhaps you could try that?
from hotreloading.
Hi, I don't know. ...
Hi there, thanks for replying!
As I've seen it has something to do with the iOS versions I'm running, I've doubled check and, both Xcode
& AppCode
do trigger the same error when running my app on iOS 14.2
, when running it on iOS 16
+, it just works.
ld: warning: -undefined dynamic_lookup is deprecated on iOS Simulator ld: warning: object file (/Users/user_folder/Library/Developer/CoreSimulator/Devices/BE1565CF-F8F7-4864-BBD0-51A765EEBF27/data/Containers/Data/Application/350B32DE-146C-40C0-94E7-7210754EEDFE/tmp/eval101.o) was built for newer iOS Simulator version (13.0) than being linked (9.0)
from hotreloading.
Ah, I see. You can ignore the ld warning until they actually deprecate it but in fact, since Xcode 14 I've not seen an instance where you need to use -undefined dynamic_lookup
which was a workaround for another problem so you can remove that from your "Other Linker Flags" now.
from hotreloading.
Well, I'm not sure I can tweak this flag, I didn't set it up.
from hotreloading.
Related Issues (20)
- Problems using HotReloading as a Swift package HOT 4
- iOS device injection not working when running as a Mac app HOT 17
- Updates overlap in UI HOT 1
- class category injection failed on device HOT 7
- Some questions about the implementation. HOT 1
- Crasing in SwiftInjection HOT 25
- Is there anyway to re-compile a file only when cmd + s ? HOT 3
- cold start on device encounter watch dog HOT 13
- Hot reloading not changing my views HOT 6
- Does it support C functions 、variable in other files? HOT 7
- Will the DDHotKey affect the file watch ? HOT 6
- Cannot use HotReloading with Other debug configurations (ex. Dev, Test Configuration) HOT 12
- Xcode 15 beta link SwiftTrace failed HOT 8
- Hot reloading failing on real iOS device HOT 12
- Connection refused HOT 12
- Cannot reload on M1, getting an “eval101.dylib” can’t be opened because Apple cannot check it for malicious software error. HOT 21
- lopen() error: dlopen(/private/var/mobile/Containers/Data HOT 2
- Cannot reload on M1: Mac os Sonoma prevents InjectionIII from accessing data HOT 3
- Loading .dylib has failed, This is likely because Swift code being injected references a function using a default argument or a member with access control that is too restrictive or perhaps an XCTest that depends on code not normally linked into your application. Rebuilding and re-running your project (without a build clean) can resolve this. HOT 8
- Custom DerivedData folder breaks hot reloading HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hotreloading.