periphery icon indicating copy to clipboard operation
periphery copied to clipboard

segmentation fault periphery scan

Open mzying2013 opened this issue 6 months ago • 4 comments

Describe the bug A clear and concise description of what the bug is. Identical type names defined in different targets do not affect the successful building of the project. However, based on the warning messages, they currently cause the periphery scan command to fail.

Reproduction If you are reporting an incorrect result, please provide a sample Xcode or Swift package project that reproduces the issue.

periphery scan
warning: Assign-only property analysis is disabled with Swift 6.1 due to a Swift bug: https://github.com/swiftlang/swift/issues/80394.
* Inspecting project...
* Building ReminderNoteWatch Watch App...
* Building ReminderNote...
* Indexing...
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote5CacheV3KeyVAEycfc' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.constructor, 'init()', implicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyVAEycfc], Config.swift:201:12), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.constructor, 'init()', implicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyVAEycfc], Config.swift:33:12), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote5CacheV3KeyV11debugEnableSSvsZ' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.setter, 'setter:debugEnable', implicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV11debugEnableSSvsZ], Config.swift:220:20), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.setter, 'setter:debugEnable', implicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV11debugEnableSSvsZ], Config.swift:37:20), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote5CacheV3KeyV11debugEnableSSvgZ' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:debugEnable', implicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV11debugEnableSSvgZ], Config.swift:220:20), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:debugEnable', implicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV11debugEnableSSvgZ], Config.swift:37:20), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote8FunctionVACycfc' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.constructor, 'init()', implicit, internal, [], [], [], [s:6ReminderNote8FunctionVACycfc], Config.swift:75:8), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.constructor, 'init()', implicit, internal, [], [], [], [s:6ReminderNote8FunctionVACycfc], Config.swift:22:8), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote5CacheVACycfc' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.constructor, 'init()', implicit, internal, [], [], [], [s:6ReminderNote5CacheVACycfc], Config.swift:200:8), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.constructor, 'init()', implicit, internal, [], [], [], [s:6ReminderNote5CacheVACycfc], Config.swift:32:8), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote5CacheV3KeyV20environmentConfigSetSSvpZ' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.static, 'environmentConfigSet', explicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV20environmentConfigSetSSvpZ], Config.swift:211:20), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.static, 'environmentConfigSet', explicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV20environmentConfigSetSSvpZ], Config.swift:35:20), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote8FunctionV' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(struct, 'Function', explicit, internal, [], [], [], [s:6ReminderNote8FunctionV], Config.swift:75:8), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(struct, 'Function', explicit, internal, [], [], [], [s:6ReminderNote8FunctionV], Config.swift:22:8), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote5CacheV' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(struct, 'Cache', explicit, internal, [], [], [], [s:6ReminderNote5CacheV], Config.swift:200:8), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(struct, 'Cache', explicit, internal, [], [], [], [s:6ReminderNote5CacheV], Config.swift:32:8), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote5CacheV3KeyV' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(struct, 'Key', explicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV], Config.swift:201:12), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(struct, 'Key', explicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV], Config.swift:33:12), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote5CacheV3KeyV20environmentConfigSetSSvsZ' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.setter, 'setter:environmentConfigSet', implicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV20environmentConfigSetSSvsZ], Config.swift:211:20), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.setter, 'setter:environmentConfigSet', implicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV20environmentConfigSetSSvsZ], Config.swift:35:20), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote5CacheV3KeyV20environmentConfigSetSSvgZ' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:environmentConfigSet', implicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV20environmentConfigSetSSvgZ], Config.swift:211:20), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:environmentConfigSet', implicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV20environmentConfigSetSSvgZ], Config.swift:35:20), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote5CacheV3KeyV11debugEnableSSvpZ' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.static, 'debugEnable', explicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV11debugEnableSSvpZ], Config.swift:220:20), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.static, 'debugEnable', explicit, internal, [], [], [], [s:6ReminderNote5CacheV3KeyV11debugEnableSSvpZ], Config.swift:37:20), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote12NoteTargetO17requestParametersSDySSypGvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'requestParameters', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO17requestParametersSDySSypGvp], NoteTarget.swift:38:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'requestParameters', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO17requestParametersSDySSypGvp], NoteTarget.swift:17:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote12NoteTargetO7baseURL10Foundation0E0Vvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'baseURL', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO7baseURL10Foundation0E0Vvp], NoteTarget.swift:65:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'baseURL', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO7baseURL10Foundation0E0Vvp], NoteTarget.swift:22:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote12NoteTargetO7baseURL10Foundation0E0Vvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:baseURL', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO7baseURL10Foundation0E0Vvg], NoteTarget.swift:65:22), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:baseURL', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO7baseURL10Foundation0E0Vvg], NoteTarget.swift:22:22), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote12NoteTargetO4pathSSvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'path', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO4pathSSvp], NoteTarget.swift:78:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'path', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO4pathSSvp], NoteTarget.swift:32:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote12NoteTargetO4pathSSvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:path', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO4pathSSvg], NoteTarget.swift:78:22), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:path', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO4pathSSvg], NoteTarget.swift:32:22), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote12NoteTargetO' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(enum, 'NoteTarget', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO], NoteTarget.swift:12:6), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(enum, 'NoteTarget', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO], NoteTarget.swift:12:6), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:e:s:6ReminderNote12NoteTargetO17requestParametersSDySSypGvp-ReminderNote' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(extension.enum, 'NoteTarget', explicit, internal, [], [], [], [s:e:s:6ReminderNote12NoteTargetO17requestParametersSDySSypGvp-ReminderNote], NoteTarget.swift:37:11), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(extension.enum, 'NoteTarget', explicit, internal, [], [], [], [s:e:s:6ReminderNote12NoteTargetO17requestParametersSDySSypGvp-ReminderNote], NoteTarget.swift:16:11), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote12NoteTargetO17requestParametersSDySSypGvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:requestParameters', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO17requestParametersSDySSypGvg], NoteTarget.swift:38:42), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:requestParameters', explicit, internal, [], [], [], [s:6ReminderNote12NoteTargetO17requestParametersSDySSypGvg], NoteTarget.swift:17:42), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV5tokenSSSgvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:token', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV5tokenSSSgvg], HTTPConfigure.swift:31:24), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:token', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV5tokenSSSgvg], HTTPConfigure.swift:20:24), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV5appIDSSvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:appID', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV5appIDSSvg], HTTPConfigure.swift:28:23), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:appID', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV5appIDSSvg], HTTPConfigure.swift:17:23), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV8languageSSvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'language', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8languageSSvp], HTTPConfigure.swift:27:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'language', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8languageSSvp], HTTPConfigure.swift:16:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV16downloadProvider4Moya0eD0CyAE11MultiTargetOGvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'downloadProvider', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV16downloadProvider4Moya0eD0CyAE11MultiTargetOGvp], HTTPConfigure.swift:38:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'downloadProvider', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV16downloadProvider4Moya0eD0CyAE11MultiTargetOGvp], HTTPConfigure.swift:33:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV5appIDSSvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'appID', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV5appIDSSvp], HTTPConfigure.swift:28:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'appID', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV5appIDSSvp], HTTPConfigure.swift:17:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV8provider4Moya0D8ProviderCyAE11MultiTargetOGvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'provider', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8provider4Moya0D8ProviderCyAE11MultiTargetOGvp], HTTPConfigure.swift:37:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'provider', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8provider4Moya0D8ProviderCyAE11MultiTargetOGvp], HTTPConfigure.swift:30:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV16downloadProvider4Moya0eD0CyAE11MultiTargetOGvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:downloadProvider', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV16downloadProvider4Moya0eD0CyAE11MultiTargetOGvg], HTTPConfigure.swift:38:53), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:downloadProvider', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV16downloadProvider4Moya0eD0CyAE11MultiTargetOGvg], HTTPConfigure.swift:33:53), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV12errorMessage2atS2S_tF' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.method.instance, 'errorMessage(at:)', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV12errorMessage2atS2S_tF], HTTPConfigure.swift:13:10), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.method.instance, 'errorMessage(at:)', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV12errorMessage2atS2S_tF], HTTPConfigure.swift:13:10), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV8provider4Moya0D8ProviderCyAE11MultiTargetOGvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:provider', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8provider4Moya0D8ProviderCyAE11MultiTargetOGvg], HTTPConfigure.swift:37:45), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:provider', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8provider4Moya0D8ProviderCyAE11MultiTargetOGvg], HTTPConfigure.swift:30:45), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV11versionCodeSSvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'versionCode', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV11versionCodeSSvp], HTTPConfigure.swift:30:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'versionCode', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV11versionCodeSSvp], HTTPConfigure.swift:19:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV11versionCodeSSvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:versionCode', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV11versionCodeSSvg], HTTPConfigure.swift:30:29), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:versionCode', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV11versionCodeSSvg], HTTPConfigure.swift:19:29), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureVACycfc' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.constructor, 'init()', implicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureVACycfc], HTTPConfigure.swift:12:8), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.constructor, 'init()', implicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureVACycfc], HTTPConfigure.swift:12:8), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV6regionSSvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:region', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV6regionSSvg], HTTPConfigure.swift:33:24), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:region', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV6regionSSvg], HTTPConfigure.swift:24:24), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV8noteIDSSvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:noteID', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8noteIDSSvg], HTTPConfigure.swift:32:26), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:noteID', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8noteIDSSvg], HTTPConfigure.swift:23:26), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV6appKeySSvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:appKey', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV6appKeySSvg], HTTPConfigure.swift:29:24), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:appKey', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV6appKeySSvg], HTTPConfigure.swift:18:24), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV5tokenSSSgvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'token', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV5tokenSSSgvp], HTTPConfigure.swift:31:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'token', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV5tokenSSSgvp], HTTPConfigure.swift:20:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV6appKeySSvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'appKey', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV6appKeySSvp], HTTPConfigure.swift:29:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'appKey', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV6appKeySSvp], HTTPConfigure.swift:18:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV8noteIDSSvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'noteID', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8noteIDSSvp], HTTPConfigure.swift:32:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'noteID', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8noteIDSSvp], HTTPConfigure.swift:23:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV6regionSSvp' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(var.instance, 'region', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV6regionSSvp], HTTPConfigure.swift:33:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(var.instance, 'region', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV6regionSSvp], HTTPConfigure.swift:24:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV8languageSSvg' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.accessor.getter, 'getter:language', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8languageSSvg], HTTPConfigure.swift:27:26), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.accessor.getter, 'getter:language', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV8languageSSvg], HTTPConfigure.swift:16:26), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(struct, 'HTTPConfigure', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV], HTTPConfigure.swift:12:8), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(struct, 'HTTPConfigure', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV], HTTPConfigure.swift:12:8), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote13HTTPConfigureV12tokenInvalidyyF' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.method.instance, 'tokenInvalid()', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV12tokenInvalidyyF], HTTPConfigure.swift:34:10), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.method.instance, 'tokenInvalid()', explicit, internal, [], [], [], [s:6ReminderNote13HTTPConfigureV12tokenInvalidyyF], HTTPConfigure.swift:25:10), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote6LoggerV' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(struct, 'Logger', explicit, internal, [], [], [], [s:6ReminderNote6LoggerV], Logger.swift:24:8), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(struct, 'Logger', explicit, internal, [], [], [], [s:6ReminderNote6LoggerV], Logger.swift:48:8), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote12ContextIndex33_EE393AEAC8C66E0AA0AC78DAD9C52E8CLLO4HTTPyA2DmF' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(enumelement, 'HTTP', explicit, internal, [], [], [], [s:6ReminderNote12ContextIndex33_EE393AEAC8C66E0AA0AC78DAD9C52E8CLLO4HTTPyA2DmF], Logger.swift:14:10), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(enumelement, 'HTTP', explicit, internal, [], [], [], [s:6ReminderNote12ContextIndex33_EE393AEAC8C66E0AA0AC78DAD9C52E8CLLO4HTTPyA2DmF], Logger.swift:27:10), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote6LoggerV5startyyFZ' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.method.static, 'start()', explicit, internal, [], [], [], [s:6ReminderNote6LoggerV5startyyFZ], Logger.swift:25:17), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.method.static, 'start()', explicit, internal, [], [], [], [s:6ReminderNote6LoggerV5startyyFZ], Logger.swift:49:17), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote12ContextIndex33_EE393AEAC8C66E0AA0AC78DAD9C52E8CLLO7defaultyA2DmF' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(enumelement, 'default', explicit, internal, [], [], [], [s:6ReminderNote12ContextIndex33_EE393AEAC8C66E0AA0AC78DAD9C52E8CLLO7defaultyA2DmF], Logger.swift:13:9), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(enumelement, 'default', explicit, internal, [], [], [], [s:6ReminderNote12ContextIndex33_EE393AEAC8C66E0AA0AC78DAD9C52E8CLLO7defaultyA2DmF], Logger.swift:26:9), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote6LoggerVACycfc' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(function.constructor, 'init()', implicit, internal, [], [], [], [s:6ReminderNote6LoggerVACycfc], Logger.swift:24:8), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(function.constructor, 'init()', implicit, internal, [], [], [], [s:6ReminderNote6LoggerVACycfc], Logger.swift:48:8), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
warning: Declaration conflict detected: a declaration with the USR 's:6ReminderNote12ContextIndex33_EE393AEAC8C66E0AA0AC78DAD9C52E8CLLO' has already been indexed.
This issue can cause inconsistent and incorrect results.
Existing declaration: Declaration(enum, 'ContextIndex', explicit, internal, [], [], [], [s:6ReminderNote12ContextIndex33_EE393AEAC8C66E0AA0AC78DAD9C52E8CLLO], Logger.swift:12:14), declared in modules: ["ReminderNote"]
Conflicting declaration: Declaration(enum, 'ContextIndex', explicit, internal, [], [], [], [s:6ReminderNote12ContextIndex33_EE393AEAC8C66E0AA0AC78DAD9C52E8CLLO], Logger.swift:25:14), declared in modules: ["ReminderNote"]
To resolve this warning, make sure all build modules are uniquely named.
* Analyzing...
[1]    44628 segmentation fault  periphery scan

Environment Copy the output from running:

periphery version
3.2.0
swift -version
swift-driver version: 1.120.5 Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
Target: arm64-apple-macosx15.0

xcodebuild -version
Xcode 16.3
Build version 16E140

mzying2013 avatar Jun 30 '25 11:06 mzying2013

Please help me, thanks.

mzying2013 avatar Aug 20 '25 06:08 mzying2013

I just cloned 3.2.0 today to try to run it against my project with Swift 6.1.3 and got the same segfault. Could there be something different in the index-store for 6.1 and later?

jessezamora avatar Oct 22 '25 19:10 jessezamora

Are either of you using index-exclude, retain-files, report-exclude or report-include? If so, the crash is likely resolved in https://github.com/peripheryapp/periphery/commit/ea1a334de3cf6a284ce48b85fda83436a23a4754, which will be released in 3.3.0.

ileitch avatar Oct 25 '25 09:10 ileitch

Thank you for your response. I didn’t use the parameter values you mentioned in my command. Below is the content of my .periphery.yml, and I ran periphery scan.

project: ReminderNote.xcworkspace
retain_assign_only_properties: true
schemes:
- ReminderNote
- ReminderNote Watch App

mzying2013 avatar Oct 27 '25 06:10 mzying2013

Can you please try again with 3.3.0?

ileitch avatar Dec 16 '25 10:12 ileitch

I will test it right now.

mzying2013 avatar Dec 16 '25 10:12 mzying2013

Now there is another error

and I have also executed the "periphery scan --setup" command multiple times before this.

periphery scan

  • Inspecting project...
  • Building ReminderNote... error: Shell command 'xcodebuild -workspace "/Users/Xx/workspace/ReminderNote/ReminderNote.xcworkspace" -scheme "ReminderNote" -parallelizeTargets -derivedDataPath '/Users/Xx/Library/Caches/com.github.peripheryapp/DerivedData-782b8a59-4baaa72b-4baaa72b' -quiet build-for-testing CODE_SIGNING_ALLOWED="NO" ENABLE_BITCODE="NO" DEBUG_INFORMATION_FORMAT="dwarf" COMPILER_INDEX_STORE_ENABLE="YES" INDEX_ENABLE_DATA_STORE="YES"' returned exit status '65': /Users/Xx/workspace/ReminderNote/Pods/SwiftDate/Sources/SwiftDate/Supports/Calendars.swift:45:1: warning: extension declares a conformance of imported type 'Identifier' to imported protocol 'CustomStringConvertible'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future ... note: a dependency of Swift module 'ReminderNote': '/Users/Xx/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/ReminderNote.swiftmodule/arm64-apple-ios.swiftmodule' note: a dependency of main module 'ReminderNoteTests' error: Compilation search paths unable to resolve module dependency: 'ZIPFoundation' note: 'ZIPFoundation' can be found using a search path that was specified when building module 'ReminderNote' ('/Users/Xx/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/ZIPFoundation/ZIPFoundation.framework/Modules/ZIPFoundation.swiftmodule'). This search path was not explicitly specified on the current compilation. note: a dependency of Swift module 'ReminderNote': '/Users/Xx/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphoneos/ReminderNote.swiftmodule/arm64-apple-ios.swiftmodule' note: a dependency of main module 'ReminderNoteTests' ** TEST BUILD FAILED **

Environment

periphery version 3.3.0 swift -version swift-driver version: 1.127.14.1 Apple Swift version 6.2.1 (swiftlang-6.2.1.4.8 clang-1700.4.4.1) Target: arm64-apple-macosx15.0

xcodebuild -version Xcode 26.1.1 Build version 17B100

mzying2013 avatar Dec 17 '25 08:12 mzying2013

If you run with the --verbose option, you'll see the full xcodebuild command that Periphery invokes. Copy and paste that into the terminal. If you get the same error, the build error is not caused by Periphery.

I'll close this issue as the crash appears to be resolved. Please open a new issue if the steps above show that the build problem is caused by Periphery.

ileitch avatar Dec 17 '25 09:12 ileitch