iOS Build Environment Help Center

Builds stopped working

append delete Oneday

Windows 10
Builder Version 3.46
iOS SDK 15.4
Using CocoaPods Daemon

Build Log: https://pastebin.com/xiB4ssaV

I've been using this product for several months now without any issue.

A few weeks ago, I tried making a build and it wouldn't work. I updated the builder, updated the iOS SDK, and it still wouldn't work. Seems to be an error with something called Protobuf? I don't have any plugin by that name but maybe it's a sub-plugin of another plugin? I have no idea at this point. Any help would be appreciated.

All I can think of that I've changed recently is that I've changed from AdMob to Unity Mediation, but I double-checked and I *did* make a build that worked after implementing Unity Mediation, so it shouldn't be the issue.

:: @Oneday added on 22 Apr ’22 · 15:49

Edit: I did log onto my mac and was able to make a build there with xCode, using the exact same build folder generated by Unity, so the issue does seem to be with the builder.

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello

I see that a specific ARC flag is not passed to the compiler. Could you send me your Xcode project directory (or one that exhibits the same problem) so that I reproduce the issue ? Confidentiality is guaranteed.

Also, you're using CocoaPods. Sometimes the Pods are updated on the master repository without notice and I suspect that's what happened here. You'll be able to workaround the problem (and get much better build times) by using the precompiled SDKs.

append delete #2. Oneday

Alright, thanks. Just sent you an email!

append delete #3. TopCog

I have the exact same issue (protobuf not compiling), and was just about to make a post. I couldn't find any precompiled sdks for Unity Mediation (I can for the others), so the solution is not clear to me - please advise!

append delete #4. Pierre-Marie Baty

Hello

I found the issue. This version of Google's Protobuf has a strange way of specifying that its Objective-C code requires no ARC (automatic reference counting) by the compiler. Instead of specifying it project-wide as Apple recommends it, they tag each file with the "-fno-objc-arc" compiler flag.

% Pods.xcodeproj\project.pbxproj @line 165
6E2F48F07B8D4175686173D344E3512F /* GPBArray.m in Sources */ = {isa = PBXBuildFile; fileRef = 5F574175A062A66B30541481FBB1E011 /* GPBArray.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
%

A fix is on the way to handle this case.

append delete #5. TopCog

Awesome - you rock! :-D

append delete #6. Pierre-Marie Baty

Version 3.47 is out which should fix that issue.

append delete #7. TopCog

It works - thank you!

append delete #8. Pierre-Marie Baty

You're welcome. Happy building :)

append delete #9. Oneday

Worked for me as well! Thanks a lot!

append delete #10. Pierre-Marie Baty

You’re welcome.

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