Search code examples
iosxcodexcode15ios17

Cannot call value of non-function type 'Bundle' using Xcode 15 beta-1


I am trying to build my project using Xcode 15 for iOS 17.

So far I have solved many errors, but I am stuck with this one.

Cannot call value of non-function type 'Bundle'

From my understanding GeneratedAssetSymbols is an auto-generated file created by Xcode to list the resources within your Assets.xcassets catalog.

I can't figured out why this file can't access the initializer Bundle(for: aClass: AnyClass).


Solution

  • My problem that we defined a global Bundle in our code.

    let Bundle = Foundation.Bundle.main
    

    We only needed to rename it as such.

    let MyBundle = Foundation.Bundle.main