Skip to content

Add objc prefix to AlignedCollectionViewFlowLayout#1

Merged
ShotaKashihara merged 2 commits intomasterfrom
ShotaKashihara-patch-1
Apr 4, 2022
Merged

Add objc prefix to AlignedCollectionViewFlowLayout#1
ShotaKashihara merged 2 commits intomasterfrom
ShotaKashihara-patch-1

Conversation

@ShotaKashihara
Copy link
Copy Markdown

Why

zendesk/commonui_sdk_ios と mischa-hildebrand/AlignedCollectionViewFlowLayout で同名class の インタフェースが異なっていてコンパイルに失敗する

/Users/shota/Library/Developer/Xcode/DerivedData/Visit-gtbpccihxarynefnhuerolmkiqsc/Build/Products/Visit Qa Debug-iphonesimulator/XCFrameworkIntermediates/ZendeskCommonUISDK/CommonUISDK.framework/Headers/CommonUISDK-Swift.h:251:1: 'AlignedCollectionViewFlowLayout' has different definitions in different modules; first difference is definition in module 'CommonUISDK.Swift' found return type is 'BOOL' (aka '_Bool')

https://github.com/zendesk/commonui_sdk_ios/blob/c7b1eaae04ad234daa72b1235393a23975e4caea/CommonUISDK.xcframework/ios-arm64_i386_x86_64-simulator/CommonUISDK.framework/Headers/CommonUISDK-Swift.h#L959-L966

どうも zendesk/commonui_sdk_ios がコード改変して取り込んでいるっぽい?

What

@objc(...) でclass名の衝突を回避する

mischa-hildebrand/AlignedCollectionViewFlowLayout は悪くない
悪いのは zendesk/commonui_sdk_ios

@ShotaKashihara ShotaKashihara merged commit deea518 into master Apr 4, 2022
@ShotaKashihara ShotaKashihara deleted the ShotaKashihara-patch-1 branch April 4, 2022 06:27
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

Successfully merging this pull request may close these issues.

1 participant