-
Notifications
You must be signed in to change notification settings - Fork 79
iOS 12, Xcode 10, and Swift 4.2 Updates #251
Comments
FWIW, in my project when I build my target with PinpointKit in Xcode 10 GM I get an obtuse error
When I substitute a my fake feedback service, my target builds and runs. This compile error happens both before and after fixing the warning for
and changing it to:
|
Thanks, @leisurehound. We’ve just completed our project updates / Swift 4.2 conversion work in #252. It’s on |
I'm still not getting this work, I'm not using CocoaPods but rather a git submodule and think I have the latest change. When I add PinpointKit to my embedded binaries and linked frameworks libraries for my target but don't reference it, I can build my project. When I add the import PinpointKit statement (in Swift) I get a 'umbrella header 'PinpointKit.h' not found, but then build the PinpointKit target the go back and build my target I get the non-zero exit code error. Removing the import statement and it then succeeds. Would really like to move to Xcode 10 so I can more efficiently test on iOS 12 and appreciate any help; using my FakeFeedbackeService.swift that I built for tests gets me so far, but is a bit cumbersome moving between dev environments |
I am having the same issue as @leisurehound, but strangely only on our build server. It is fine building locally. Here is the error when built with --verbose:
|
Thanks for the detailed information @joelshea. Could you provide the following information if it’s not too much trouble?
|
Hope that helps. |
Okay, I figured out the issue. In order to complete the installation of a new version of Xcode, you must open the application on the desktop so it can download and install a couple more things. Because this was a headless server, that wasn't done. That's why the error says it couldn't find a particular tool. I found this solution with the help of this StackOverflow question: https://stackoverflow.com/questions/52413921/what-causes-unrecognized-selector-sent-to-class-error-on-xamarin-forms-build. (I'm not using Xamarin, which is why I didn't see this answer sooner, but turns out to be the same underlying issue.) So turns out to be an environment issue. Sorry for the noise. |
No worries at all, @joelshea. Thanks for following up about this! |
@leisurehound, please try running the project I’ve attached here: PinpointKitXcode10Test.zip. I’ve followed the manual install steps for PinpointKit found here. The project has full git history and a commit for each step that makes a change, if you’d like to reference it. Please see if this project works for you in Xcode 10 to help rule out any issues specific to your computer. If the project builds and runs fine, it might be helpful to compare all of the build settings in your project with this example project to find a discrepancy that might be causing the error, including but not limited to the Build Options, Search Paths, and Swift Compiler categories. |
@mliberatore I tested it for you on xcode 10 and it compiles and the test succeeds, if that is to any help. |
Closing as all tasks are complete. |
@mliberatore will this mean that it will be comitted to the master asap? I want to use the framework but am unable since it is not in the cocoapod yet. |
Hey, @Teglgaard. Yes! We just released version |
my brand new mid 2018 MacBook Pro arrived today, installed Xcode 10, cloned my project and it worked. I did not transfer my old Mac to this one, so truly clean new Mac and it worked, so its likely in the environment of my trashcan MacPro. Thanks again for the help, sorry for the noise. I think I spent 2 days trying to find xcode->preferences->locations->derived data->legacy that was breaking things in the past, so imagine its related. |
With the Xcode 10 GM available:
The text was updated successfully, but these errors were encountered: