Closed tonnihyldgaard closed 3 years ago
Hello @tonnihyldgaard,
yes, excellent catch, we already noticed the same!
As to my knowledge there is sadly no way to override the Package Reference Name Xcode picks as of now. If you look at our Package file, we already set the Package Name to PhraseSDK
accordingly (in https://github.com/phrase/ios-sdk/blob/master/Package.swift) but Xcode uses the Repository Name as Reference Name.
From what I know the internal Package resolution is tied to the Repository, so beside this misleading display name no conflicts should occur, even if another Repo is named ios-sdk
, too.
hth!
@tonnihyldgaard Without any change to our Package, starting with Xcode 12.5 this seems to work correctly:
Xcode now takes not only the Repo url into account but correctly displays the Package name from the Package manifest.
Let me know if this works for you now, too. Going to close this issue soon.
/* XCRemoteSwiftPackageReference "ios-sdk" */,
We have noticed that the Phrase SDK for iOS is named
ios-sdk
in theXCRemoteSwiftPackageReference
, this could potentially lead to package conflicts if another framework uses the same name for their SDK.It's a minor thing, but I suggest changing the reference name to reduce risk of conflicts :)