Skip to main content
Inspiring
July 25, 2024
質問

Error "integer value -1 is outside the valid range of values [0, 3]" in InDesign SDK: How to Fix?

  • July 25, 2024
  • 返信数 2.
  • 1034 ビュー

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!

このトピックへの返信は締め切られました。

返信数 2

Community Expert
July 26, 2024

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

-Manan
Robert at ID-Tasker
Legend
July 25, 2024

What is the value of "value"? 

 

Isn't it "0"?

 

Stefano5C37作成者
Inspiring
July 25, 2024

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

Robert at ID-Tasker
Legend
July 25, 2024

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...