-1

When I compile my app I get a long list of errors all connected to

UIKit/UICloudSharingController.h

as you may see in the attached screenshot.

What does it mean and how to fix it?

enter image description here

11
  • Have you checked with Restarting Xcode, Clearing derived data? Commented Jan 3, 2019 at 10:43
  • I restarted Xcode and cleaned the build folder from Xcode; I was not able to find the Derived Data folder in Version 10.1 any longer. The compilation gives the same errors after that. Commented Jan 4, 2019 at 9:21
  • This may help:- stackoverflow.com/questions/46468220/… Commented Jan 4, 2019 at 9:25
  • Ok, thanks, I found and deleted the Derived Data folder, but the error remained. Commented Jan 4, 2019 at 9:44
  • I even ported, for good measure, the iCloud management file to Swift, but that changed nothing as well. Commented Jan 4, 2019 at 11:23

1 Answer 1

0

The issue was due to a very weird problem Apple helped me to find out. In practice I used flag share in #if clauses to shield piece of code in the appropriate target. What I found was that this flag is also used somewhere by Apple itself and so I shielded even some parts of its code with the errors I reported. Once renamed to sharespare, the name of the app, the problem all but disappeared.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.