Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Unified Diff: testing/iossim/iossim.mm

Issue 2066983004: Work around iossim compile issues on latest Xcode beta. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/class-dump/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/iossim/iossim.mm
diff --git a/testing/iossim/iossim.mm b/testing/iossim/iossim.mm
index b0d691632c806ad34a23ca901506e0855a48db55..74651d7016a09233271e29efaae6ccf05cd6c54d 100644
--- a/testing/iossim/iossim.mm
+++ b/testing/iossim/iossim.mm
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#import <Appkit/Appkit.h>
#include <asl.h>
#import <Foundation/Foundation.h>
#include <libgen.h>
@@ -24,6 +25,17 @@
@class DVTStackBacktrace;
#import "DVTFoundation.h"
+// TODO(crbug.com/619982): The latest Xcode beta does not include the proper
+// headers to use or compile iossim. Define them here so iossim can compile for
+// now. Unwind this #ifdef if future betas work, or replace and remove iossim.
+#if defined(__MAC_10_12) && __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_12
+@class SimDevice;
+@class SimDevicePasteboardConnection;
+@class SimDeviceNotificationManager;
+@class SimMachPortServer;
+@class SimPasteboardItem;
+#endif
+
@protocol SimBridge;
@class DVTSimulatorApplication;
@class SimDeviceSet;
@@ -56,6 +68,21 @@
didStart:(BOOL)started
withError:(NSError*)error;
@end
+
+// TODO(crbug.com/619982): The latest Xcode beta does not include the proper
+// headers to use or compile iossim. Define them here so iossim can compile for
+// now. Unwind this #ifdef if future betas work, or replace and remove iossim.
+#if defined(__MAC_10_12) && __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_12
+@class SimRuntime;
+@interface DTiPhoneSimulatorSystemRoot : NSObject<NSCopying> {
+ SimRuntime* _runtime;
+}
++ (id)rootWithSDKVersion:(id)arg1;
+@property(readonly) SimRuntime* runtime;
+@property(readonly, copy) NSString* sdkVersion;
+@end
+#endif
+
#import "DVTiPhoneSimulatorRemoteClient.h"
// An undocumented system log key included in messages from launchd. The value
« no previous file with comments | « no previous file | third_party/class-dump/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698