Posts

Post not yet marked as solved
3 Replies
1.9k Views
I am using xcode 8, in a project where I mix objective c and swift 3.In my objective C file, if I include the Objective C Generated Interface Header (MODULENAME-Swift) to use my swift classes. Even though the project compiles properly and the program runs fine, when I open the object C file including the -swift.h header, errors are reported in the source code. The error do not make sense: it complains about "ambiguous reference", and the two candidates it mentions are excalty the same file.This only happens in my full blown project, I have not been able to reproduce in a smaller test project.I have tried multiple clean and delete of the derived data. If I build the project and the file with the issues are not opened, it's all good. As soon as I select the file with the Swift header include, the error appears.It seems xcode must run some compile in the background independent of the main build process and this gets confused. But I couldn't figure out how to fix it or configure it properly.Any idea?
Posted
by brice.
Last updated
.
Post not yet marked as solved
13 Replies
5.7k Views
My Xcode cloud build have been failing for some time due to failure to install brew for cocoapods. (my only dependency here is cocoa pods) I followed the instruction in the documentation here And have a simple ci_post_clone script here #!/bin/sh brew install cocoapods pod install The error are typically in the brew install part and often refer to a HTTP 500 error, an example pasted below, but they are not always consistent and happening at different random place in the brew update. What should I add to my ci script to make brew and cocoapods work? Example of error (never exactly the same) Initialized empty Git repository in /Users/local/Homebrew/.git/ Updating Homebrew... error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 fatal: expected flush after ref listing ==> Tapping homebrew/core Cloning into '/Users/local/Homebrew/Library/Taps/homebrew/homebrew-core'... error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 fatal: error reading section header 'shallow-info' Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-core /Users/local/Homebrew/Library/Taps/homebrew/homebrew-core --origin=origin --template=` exited with 128. Error: Failure while executing; `/Users/local/Homebrew/bin/brew tap homebrew/core` exited with 1. /Volumes/workspace/repository/ci_scripts/ci_post_clone.sh: line 5: pod: command not found
Posted
by brice.
Last updated
.