Getting compile errors in xcode 13 #376

Open
opened 2025-12-29 15:30:25 +01:00 by adam · 9 comments
Owner

Originally created by @laeroah on GitHub (Oct 21, 2021).

Getting compile errors in xcode 13, Internals.DiffableDataUIDispatcher.DiffResult.swift:
'let' property 'pointer' may not be initialized directly; use "self.init(...)" or "self = ..." instead

Initializer for class 'Internals.DiffableDataUIDispatcher.DiffResult.IndicesReference' is '@inlinable' and must delegate to another initializer

...
etc

Originally created by @laeroah on GitHub (Oct 21, 2021). Getting compile errors in xcode 13, Internals.DiffableDataUIDispatcher.DiffResult.swift: 'let' property 'pointer' may not be initialized directly; use "self.init(...)" or "self = ..." instead Initializer for class 'Internals.DiffableDataUIDispatcher<O>.DiffResult<Index>.IndicesReference' is '@inlinable' and must delegate to another initializer ... etc
Author
Owner

@JohnEstropia commented on GitHub (Oct 21, 2021):

@laeroah Thanks for reporting. May I ask how you import CoreStore into your project? I'm guessing Swift Package Manager?

@JohnEstropia commented on GitHub (Oct 21, 2021): @laeroah Thanks for reporting. May I ask how you import CoreStore into your project? I'm guessing Swift Package Manager?
Author
Owner

@laeroah commented on GitHub (Oct 21, 2021):

thanks for the prompt response. I'm using cocoapod.

@laeroah commented on GitHub (Oct 21, 2021): thanks for the prompt response. I'm using cocoapod.
Author
Owner

@JohnEstropia commented on GitHub (Oct 21, 2021):

I don't see this issue. Can you show me your Pod file declaration and the CoreStore version you are using?

@JohnEstropia commented on GitHub (Oct 21, 2021): I don't see this issue. Can you show me your Pod file declaration and the CoreStore version you are using?
Author
Owner

@laeroah commented on GitHub (Oct 21, 2021):

pod 'CoreStore', '~> 8.1.0'

full Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '12.0'

target 'AppFriendsCore' do
  use_frameworks!

  pod 'CoreStore', '~> 8.1.0'
end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |configuration|
            configuration.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
            configuration.build_settings['BITCODE_GENERATION_MODE'] = "bitcode"
        end
    end
end
@laeroah commented on GitHub (Oct 21, 2021): pod 'CoreStore', '~> 8.1.0' full Podfile: ``` source 'https://github.com/CocoaPods/Specs.git' platform :ios, '12.0' target 'AppFriendsCore' do use_frameworks! pod 'CoreStore', '~> 8.1.0' end post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |configuration| configuration.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' configuration.build_settings['BITCODE_GENERATION_MODE'] = "bitcode" end end end ```
Author
Owner

@JohnEstropia commented on GitHub (Oct 21, 2021):

Can you try doing a clean build? (deleting the DerivedData, etc.)
If you still get errors afterwards please send the relevant compiler error logs.

@JohnEstropia commented on GitHub (Oct 21, 2021): Can you try doing a clean build? (deleting the DerivedData, etc.) If you still get errors afterwards please send the relevant compiler error logs.
Author
Owner

@laeroah commented on GitHub (Oct 22, 2021):

Hi John, the issue seems to be with Build libraries for distribution option. I'm working on a library release that needs library evolution support. Not being able to build CoreStore with Build libraries for distribution turned on compromises it. Is it possible to have an update to address this? thank you!

@laeroah commented on GitHub (Oct 22, 2021): Hi John, the issue seems to be with `Build libraries for distribution` option. I'm working on a library release that needs library evolution support. Not being able to build CoreStore with `Build libraries for distribution` turned on compromises it. Is it possible to have an update to address this? thank you!
Author
Owner

@bonebox commented on GitHub (Jan 25, 2022):

Any update on this? Having the same issue.

@bonebox commented on GitHub (Jan 25, 2022): Any update on this? Having the same issue.
Author
Owner

@JohnEstropia commented on GitHub (Jan 25, 2022):

I'm sorry, I'm still not sure what the issue here. We have several projects using CoreStore with Xcode 13.x and Cocoapods without any issues. Can you try removing the post_install script from your Podfile? I'm not sure how BUILD_LIBRARY_FOR_DISTRIBUTION behaves, but your main app should be the one dictating the architecture and bitcode settings anyway.

@JohnEstropia commented on GitHub (Jan 25, 2022): I'm sorry, I'm still not sure what the issue here. We have several projects using CoreStore with Xcode 13.x and Cocoapods without any issues. Can you try removing the `post_install` script from your Podfile? I'm not sure how `BUILD_LIBRARY_FOR_DISTRIBUTION ` behaves, but your main app should be the one dictating the architecture and bitcode settings anyway.
Author
Owner

@JohnEstropia commented on GitHub (Jan 25, 2022):

Following some discussions here, it might be worth trying to set BUILD_LIBRARY_FOR_DISTRIBUTION for all your Podfile dependencies

@JohnEstropia commented on GitHub (Jan 25, 2022): Following some discussions [here](https://github.com/CocoaPods/CocoaPods/issues/11153), it might be worth trying to set `BUILD_LIBRARY_FOR_DISTRIBUTION` for all your Podfile dependencies
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#376