Copy link to clipboard
Copied
Hi everyone,
1. Problem Description
I'm encountering an issue with the InDesign SDK. The error I'm receiving is: "integer value -1 is outside the valid range of values [0, 3] for this enumeration type." This error seems to be generated by an SDK file rather than my own code.
2. Context Details
I noticed the error when I updated xcode from 14.2 to 15.2.
3. Image
4. File
SDK/external/dva/third_party/boost_libraries/boost/mpl/aux_/integral_wrapper.hpp
Thanks in advance for your help!
Copy link to clipboard
Copied
What is the value of "value"?
Isn't it "0"?
Copy link to clipboard
Copied
I have no idea what the value of that variable is, if you want I'll attach an image of the file, but you can see it too I left the path to this file in the previous message
These types of errors are really frustrating because they make me lose a lot of time and will certainly concern the project settings, in any case the motivation will certainly be linked to the xcode update, because before everything worked correctly and then it started giving me this error
Copy link to clipboard
Copied
You are using "value" as an index - but it's "0" - so earlier row is OK - as you are adding "1" increasing this index - but highlighted line fails - as your code is decreasing index - and it's then negative...
Copy link to clipboard
Copied
Hi @Stefano5C37 ,
Which SDK are you using? I don't think Xcode 15.2 is the recommended version for any public SDK version. I would attribute this issue to the XCode version, please revert back to the recommended version for the SDK you are using and you should be fine mostly.
-Manan