pointfreeco / episode-code-samples

💾 Point-Free episode code.
https://www.pointfree.co
MIT License
939 stars 289 forks source link

[DesigningDependencies] Unable to run example app on iOS device #67

Open slashmo opened 3 years ago

slashmo commented 3 years ago

Where you able to run the DesigningDependencies app (episode 113) on an actual iOS device? For me, there's the following linker issue (tested in both Xcode 12 beta 4 & 5):

dyld: Library not loaded: @rpath/LocationClient.framework/LocationClient Referenced from: /private/var/containers/Bundle/Application/F0C8AB02-6BF5-4C73-AE80-C3A291595B2E/DesigningDependencies.app/Frameworks/WeatherFeature.framework/WeatherFeature Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/F0C8AB02-6BF5-4C73-AE80-C3A291595B2E/DesigningDependencies.app/Frameworks/WeatherFeature.framework/Frameworks/LocationClient.framework/LocationClient: code signature in (/private/var/containers/Bundle/Application/F0C8AB02-6BF5-4C73-AE80-C3A291595B2E/DesigningDependencies.app/Frameworks/WeatherFeature.framework/Frameworks/LocationClient.framework/LocationClient) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. dyld: launch, loading dependent libraries DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib

mbrandonw commented 3 years ago

We're looking into this but we're honestly not sure what is going on. This seems to be related to all of the SPM+Xcode bugs with frameworks having dependencies. If you figure something else please let us know.