CreateToolBar Bug on macOS with Xcode 9.1

Mac OSX specific forum
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

CreateToolBar Bug on macOS with Xcode 9.1

Post by mk-soft »

Hello,
i have a big problem.

The ToolBar doesn't work for me anymore.
[11:04:57] Warte auf den Start des Executable...
[11:04:57] Executable-Typ: MacOSX - x64 (64bit, Unicode)
[11:04:57] Executable gestartet.
[11:04:57] [ERROR] Zeile: 12
[11:04:57] [ERROR] Customizable toolbars require unique toolbarIdentifiers. Please use initWithIdentifier: with a unique identifier.
[11:05:03] Das Programm wurde beendet.
After these errors I tried Xcode version 8 (copy). With this version it worked again.
Then I updated to version 9.1 (6 hours download).
Because after again the same mistake.
Then I reinstalled the' Command Line Tools' (Xcode-select --install)
Unfortunately, that didn't work out.

I don't know now. :|

OS: macOS 10.13.1
Xcode: Version 9.1 (9B55)
HW: Mac Mini Late 2012 (I7)

Code: Select all

If OpenWindow(0, 0, 0, 150, 25, "ToolBar", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
  CreateImage(0,16,16)
  StartDrawing(ImageOutput(0))
  Box(0,0,16,16,RGB(255,255,255))
  Box(4,4,8,8,RGB(255,0,0))
  StopDrawing()
  CreateImage(1,16,16)
  StartDrawing(ImageOutput(1))
  Box(0,0,16,16,RGB(255,0,0))
  Box(4,4,8,8,RGB(255,255,255))
  StopDrawing()
  If CreateToolBar(0, WindowID(0))
    ToolBarImageButton(0,ImageID(0))
    ToolBarImageButton(1,ImageID(1))
  EndIf
  Repeat
  Until WaitWindowEvent() = #PB_Event_CloseWindow 
EndIf
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: CreateToolBar Bug on macOS with Xcode 9.1

Post by wilbert »

mk-soft wrote:[ERROR] Customizable toolbars require unique toolbarIdentifiers. Please use initWithIdentifier: with a unique identifier.
I can confirm the problem.
Windows (x64)
Raspberry Pi OS (Arm64)
Post Reply