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

Xcode 12 : PR 163 & WeakMapTable bug #166

Open
PierreBrisorgueil opened this issue Sep 21, 2020 · 6 comments
Open

Xcode 12 : PR 163 & WeakMapTable bug #166

PierreBrisorgueil opened this issue Sep 21, 2020 · 6 comments

Comments

@PierreBrisorgueil
Copy link

dyld: Library not loaded: @rpath/WeakMapTable.framework/WeakMapTable
Referenced from: /Users/pierrebrisorgueil/Library/Developer/CoreSimulator/Devices/2D27349F-91E4-45BB-84C9-9D8C2D47A637/data/Containers/Bundle/Application/A1589774-02B6-46C1-8A70-AAAA03D1E0FE/waosSwift.app/Frameworks/ReactorKit.framework/ReactorKit
Reason: image not found
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/pierrebrisorgueil/Library/Developer/CoreSimulator/Caches/dyld/19G2021/com.apple.CoreSimulator.SimRuntime.iOS-14-0.18A372
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_LIBRARY_PATH=/Users/pierrebrisorgueil/Library/Developer/Xcode/DerivedData/waosSwift-blklsvylyurdhqcbfsxcfirghxkd/Build/Products/development-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platf
(lldb)

i'm facing this issue after carthage installation on xcode 12 swift 5, any idea ?

@PierreBrisorgueil
Copy link
Author

@PierreBrisorgueil PierreBrisorgueil changed the title Xcode 12 with swift 5 PR https://github.com/ReactorKit/ReactorKit/pull/163 Xcode 12 with swift 5 PR 163 : WeakMapTable Sep 22, 2020
@PierreBrisorgueil
Copy link
Author

ref : #168

@PierreBrisorgueil
Copy link
Author

PierreBrisorgueil commented Sep 22, 2020

Hello, quick conclusion on my tests, I allow myself to ping people who have discussed similar subjects

@kbw2204 @chihaodong @dodgecm @devxoul @tokijh

So, for xcode 12 / swift 5 migration we are facing two issues:

  • swift package update
  • WeakMapTable issue

based on my fork https://github.com/PierreBrisorgueil/ReactorKit/tree/fixUpgradeIosDeploymentTarget2

i'm facing this last issue :

transformedState.connect().disposed(by: self.disposeBag)
Thread 1: EXC_BAD_ACCESS (code=2, address=0x10ce6c450) (lldb) 

Reactor.swift
Screenshot 2020-09-22 at 11 38 00

probably the last issue for xcode 12 migration, but not very competent, on this stuff i will try to understand.

related to : #140

@PierreBrisorgueil PierreBrisorgueil changed the title Xcode 12 with swift 5 PR 163 : WeakMapTable Xcode 12 : PR 163 & WeakMapTable bug Sep 22, 2020
@PierreBrisorgueil
Copy link
Author

Ok, after a switch on last rxSwift 5.1.1 in project everything is ok.

So to be ready for xcode 12 i think we just need to accept #163 and resolve WeakMapTable issue.

I would try to look again at why the package is missing and causing problems. With carthage it seemed to be in the checkout directory without a problem, however once build the dependency is missing for ReactorKit in our project, really strange.

(ps: Xcode 12 carthage require Carthage/Carthage#3019)

@dodgecm
Copy link
Contributor

dodgecm commented Sep 25, 2020

Hi, my apologies for the slow response. In our Fastfile, we do:

    Dir.chdir("../Carthage/Checkouts/ReactorKit") do
      sh "swift package generate-xcodeproj --xcconfig-overrides ../../../Frameworks/ReactorKit.xcconfig"
    end
    Dir.chdir("../Carthage/Checkouts/WeakMapTable") do
      sh "swift package generate-xcodeproj --xcconfig-overrides ../../../Frameworks/WeakMapTable.xcconfig"
    end

The Carthage workaround documentation in ReactorKit should probably be updated to include this as well, but I didn't think to include it in my PR.

@PierreBrisorgueil
Copy link
Author

@dodgecm hum, thx for this information, i will try it soon, and I would give feedback to update the readme 👍

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