• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Participant ,
Jul 25, 2024 Jul 25, 2024

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

Screenshot 2024-07-25 alle 14.40.55.png

4. File

SDK/external/dva/third_party/boost_libraries/boost/mpl/aux_/integral_wrapper.hpp

 

Thanks in advance for your help!

TOPICS
SDK

Views

203

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 25, 2024 Jul 25, 2024

Copy link to clipboard

Copied

What is the value of "value"? 

 

Isn't it "0"?

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 25, 2024 Jul 25, 2024

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

Screenshot 2024-07-25 alle 17.27.08.png

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 25, 2024 Jul 25, 2024

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

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 25, 2024 Jul 25, 2024

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines