Topics

XCode 11 - Weird Waning Message

Dave
 

Hi,

I’m getting a lot of warnings like these:

/Documents/Development/Projects/LTWGame/Resources/Storyboards/MacManualLayout.storyboard:gKW-LD-j6p: warning: Multiple objects using identifier "BoardCellID#2-1" (Identifiers must be unique) [9]
/Documents/Development/Projects/LTWGame/Resources/Storyboards/MacManualLayout.storyboard:mDe-RU-Ke5: warning: Multiple objects using identifier "BoardCellID#5-1" (Identifiers must be unique) [9]

Does anyone know what this means? The storyboard file in question does have a lot of fields with they ID field(s) set. These are view classes and have the “Identifier”, “Accessibility Identifier/Identifier” and “Label” fields in the Class Inspector pane. These are all set to the same value in each case, e.g. all 3 are set to "BoardCellID#2-1”.

There are a lot of these view objects one for each cell (square) in the game.

It worked ok in previous versions for XCode (no warnings).


Thanks for any help.

All the Best
Dave

Dave
 

Found the problem, a view hierarchy had been copied and pasted into the Storyboard, not sure whether it was a typeo or caused by updating the file to XCode 11.

Anyway, problem solved.

Cheers
Dave

On 31 Dec 2019, at 13:48, Dave <dave@...> wrote:

Hi,

I’m getting a lot of warnings like these:

/Documents/Development/Projects/LTWGame/Resources/Storyboards/MacManualLayout.storyboard:gKW-LD-j6p: warning: Multiple objects using identifier "BoardCellID#2-1" (Identifiers must be unique) [9]
/Documents/Development/Projects/LTWGame/Resources/Storyboards/MacManualLayout.storyboard:mDe-RU-Ke5: warning: Multiple objects using identifier "BoardCellID#5-1" (Identifiers must be unique) [9]

Does anyone know what this means? The storyboard file in question does have a lot of fields with they ID field(s) set. These are view classes and have the “Identifier”, “Accessibility Identifier/Identifier” and “Label” fields in the Class Inspector pane. These are all set to the same value in each case, e.g. all 3 are set to "BoardCellID#2-1”.

There are a lot of these view objects one for each cell (square) in the game.

It worked ok in previous versions for XCode (no warnings).


Thanks for any help.

All the Best
Dave


Alex Zavatone
 

It sounds like there are more rigorous checks in Xcode 11 for storyboard scene identifiers.  It looks like you are checking the accessibility identifiers, which are different.

On Dec 31, 2019, at 6:48 AM, Dave <dave@...> wrote:

Hi,

I’m getting a lot of warnings like these:

/Documents/Development/Projects/LTWGame/Resources/Storyboards/MacManualLayout.storyboard:gKW-LD-j6p: warning: Multiple objects using identifier "BoardCellID#2-1" (Identifiers must be unique) [9]
/Documents/Development/Projects/LTWGame/Resources/Storyboards/MacManualLayout.storyboard:mDe-RU-Ke5: warning: Multiple objects using identifier "BoardCellID#5-1" (Identifiers must be unique) [9]

Does anyone know what this means? The storyboard file in question does have a lot of fields with they ID field(s) set. These are view classes and have the “Identifier”, “Accessibility Identifier/Identifier” and “Label” fields in the Class Inspector pane. These are all set to the same value in each case, e.g. all 3 are set to "BoardCellID#2-1”.

There are a lot of these view objects one for each cell (square) in the game.

It worked ok in previous versions for XCode (no warnings).


Thanks for any help.

All the Best
Dave