Posts

Post marked as solved
5 Replies
2.4k Views
I am trying to export a Catalyst app using Developer ID as distribution method. However I am unable to do it because xcode complains about Apple Sign in capability not being included in the profile (which clearly is, see attached - https://www.icloud.com/iclouddrive/0T4Qf6NuPPtD97uLJ_dCxh-3w#Image_1-14-21_at_7.43_AM). Any solutions or workarounds? Thank you.
Posted
by vbaro.
Last updated
.
Post not yet marked as solved
3 Replies
2.6k Views
Hello, We are modularizing our iOS project using SPM. One of those modules is our UI module, which contains a bunch of Resources, for example, custom fonts. In order to register the fonts, we use the following code to access the resources: swift Bundle.module.urls(forResourcesWithExtension: "otf", subdirectory: nil) This is the recommended way from Apple as seen here - https://developer.apple.com/videos/play/wwdc2020/10169/. This seems to be working when importing the module into our main app. The problem appears when this code is executed from a Playground within the same module. When the code is executed, a fatal error is thrown: unable to find bundle named UniverseUI_UniverseUI This is triggered from the generated file resource_bundle_accessor.swift which contains the following code: swift import class Foundation.Bundle private class BundleFinder {} extension Foundation.Bundle {     /// Returns the resource bundle associated with the current Swift module.     static var module: Bundle = {         let bundleName = "UniverseUI_UniverseUI"         let candidates = [             // Bundle should be present here when the package is linked into an App.             Bundle.main.resourceURL,             // Bundle should be present here when the package is linked into a framework.             Bundle(for: BundleFinder.self).resourceURL,             // For command-line tools.             Bundle.main.bundleURL,         ]         for candidate in candidates {             let bundlePath = candidate?.appendingPathComponent(bundleName + ".bundle")             if let bundle = bundlePath.flatMap(Bundle.init(url:)) {                 return bundle             }         }         fatalError("unable to find bundle named UniverseUI_UniverseUI")     }() } Lastly, our module target defines resources like so: swift resources: [.process("Resources")]), Is there any workaround so we don't trigger the fatalError when executing that code from a playground? Any check to know if Bundle.module is available? Thank you
Posted
by vbaro.
Last updated
.
Post not yet marked as solved
2 Replies
1.6k Views
Our project is currently unable to display local variable values at breakpoints. Here is a screenshot of the actual result. - https://www.icloud.com/iclouddrive/0nop-LUkIQ3Q0H3TsaKuy45PA#Screen_Shot_2021-02-22_at_11.19.09_AM I saw similar posts: https://developer.apple.com/forums/thread/23264 https://stackoverflow.com/questions/28497533/po-gives-error-expr11-error-use-of-unresolved-identifier Although I checked ever single answer and my problem is still there. Most of the answers revolve around setting -Onone optimization level, whic we already had. I believe it has nothing to do with optimization level but with SPM. Let me explain. I ran a git bisect to find when we introduced the problem. Turns out there is a specific commit that causes the issue and the only thing it does is adding Auth0 library to our project via SPM. Prior to that commit, debug was working as expected. After that commit, it does not work anymore. I tried removing that specific dependency from our project and cleaning SPM caches but it didn't fix the issue. Any ideas? Thank you.
Posted
by vbaro.
Last updated
.