Code Monkey home page Code Monkey logo

Comments (13)

johnno1962 avatar johnno1962 commented on June 12, 2024 2

It's a warning.

from hotreloading.

johnno1962 avatar johnno1962 commented on June 12, 2024

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.

saim80 avatar saim80 commented on June 12, 2024

@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.

saim80 avatar saim80 commented on June 12, 2024

@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.

saim80 avatar saim80 commented on June 12, 2024

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.

saim80 avatar saim80 commented on June 12, 2024

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.

saim80 avatar saim80 commented on June 12, 2024

My issue was linker flag misconfiguration. Sorry about the noise!

from hotreloading.

johnno1962 avatar johnno1962 commented on June 12, 2024

👍

from hotreloading.

ton1n8o avatar ton1n8o commented on June 12, 2024

@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.

johnno1962 avatar johnno1962 commented on June 12, 2024

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.

ton1n8o avatar ton1n8o commented on June 12, 2024

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.

johnno1962 avatar johnno1962 commented on June 12, 2024

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.

ton1n8o avatar ton1n8o commented on June 12, 2024

Well, I'm not sure I can tweak this flag, I didn't set it up.

from hotreloading.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.