Darwin Build Environment Help Center

AMAPlatformDescription.m(47,12): error: unexpected '@' in program

append delete Pedro S

Windows: 11
builder: 3.83.1
ios: 26.0
pastebin: https://pastebin.com/0s9Y9tEm

After adding the Yandex Sdk for ads this error started happening.

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello first,

It looks like something should preprocess this source file before compilation, or that the Xcode level requirements for this version of the Yandex SDK are not met. What are they?

append delete #2. Pedro S

Hello, sorry I usually forget since I copy the post requirements and just fill them up!

If you mean the minimum Xcode requirement, the documentation says xcode 16.3
Since I'm using xcode 26's SDK I believe something should be preprocessed?

Thanks.

append delete #3. Pierre-Marie Baty

I found the possible source of the missing preprocessing step. Here:

https://github.com/CocoaPods/Specs/blob/master/Specs/1/7/a/AppMetricaPlatform/5.3.1/AppMetricaPlatform.podspec.json

You can see That AMA_BUILD_TYPE is defined to "source".

To replicate that behaviour you may try to add something like -DAMA_BUILD_TYPE=\"source\" (note the escaped quotes) in the extra compiler flags, or patch the source file yourself so that it returns "source" (the C string) at that line.

append delete #4. Pedro S

Hello,
I've tried adding it to the extra compiler but for some reason it didn't work.

Is it possible for me to send you the xcode project for you to test like in previous instances? Thanks a lot

append delete #5. Pierre-Marie Baty

I have taken on new responsibilities and I have less time than before, so I would prefer if we did this in last resort.

Have you tried simply patching the source file with the right value?

append delete #6. Pedro S

Yes I did, but a new problem appeared.

https://pastebin.com/821z2MVE

It's a very huge list of errors for some reason

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty