每当我尝试在Xcode 7 beta 4中安装watchOS 2应用程序时,我在iOS上收到AlertView弹出错误:
无法安装Watch App
TestApp安装在您的iPhone上,但Apple Watch的TestApp应用程序目前无法使用.
我也试过通过Apple Watch iOS应用程序安装watchOS应用程序,但我得到了同样的错误.当我尝试运行watchOS目标时,我得到了这个:
启动'TestApp WatchKit App Extension'时出错
安装错误.查看iPhone控制台了解更多详情."
我重新安装了Xcode,删除并重新添加了所有模拟器,重置模拟器内容和设置......其中没有一个有效.我还创建了一个全新的项目.这发生在模拟器和运行iOS 9 beta 4和watchOS 2 beta 4的物理设备/手表上.
有没有人想出一个修复或解决方法?
谢谢!
我从.h文件中获取此代码(代码段):
#import <UIKit/UIKit.h>
#import "ILView.h"
/**
* Controls the orientation of the picker
*/
typedef enum {
ILHuePickerViewOrientationHorizontal = 0,
ILHuePickerViewOrientationVertical = 1
} ILHuePickerViewOrientation;
@class ILHuePickerView;
/**
* Hue picker delegate
*/
@protocol ILHuePickerViewDelegate
/**
* Called when the user picks a new hue
*
* @param hue 0..1 The hue the user picked
* @param picker The picker used
*/
-(void)huePicked:(float)hue picker:(ILHuePickerView *)picker;
@end
/**
* Displays a gradient allowing the user to select a hue
*/
@interface …Run Code Online (Sandbox Code Playgroud) 我在Xcode 9.4中构建项目时遇到了奇怪的错误
Build system information - unexpected service error: The Xcode build system has crashed. Please close and reopen your workspace.
Run Code Online (Sandbox Code Playgroud)
我尝试了Xcode退出并重新打开但是没有用.有解决方案吗
我整天都在功能上做了一些改变.之后,我关闭了工作区并尝试再次打开它显示Couldn't load project.
我已尝试在stackoverflow上提供所有解决方案但没有工作.我在项目中使用可可豆荚.
任何其他修复?
我使用Xcode 6 beta 4和iOS 8模拟器时遇到问题.每次我尝试运行我的项目时,Xcode都会向我发送"Connection lost"错误.我试图删除并创建新的模拟器,为Xcode 6设置命令行工具,但仍然没有发生任何事情.我该怎么办?

我最近从在MacMini上开发iOS应用程序改为新的MacBook Pro(2.2 GHz Intel Core i7).在XCode中工作时,当系统显然尝试进行自动保存并遇到问题时,偶尔会出现弹出窗口.
弹出窗口状态"文档[文件名]无法自动保存.该文件已被其他应用程序更改.请单击"保存"以保留更改并将其他应用程序所做的更改另存为版本,或单击"还原"以保留来自其他应用程序的更改并将更改保存为版本."
文件名的示例是:AppDelegate.m,MyLoginViewController.m.不应该有任何其他改变这些文件.
在我选择其中一个选项之前,我无法在XCode中执行任何操作.有时似乎系统试图用旧版本的代码覆盖我的最新代码,有时似乎它试图保存我的最新代码.因此,有时Revert是我需要做的事情来保持我当前的版本,其他时候Save Anyway就是我需要做的.但是,有时候,我无法分辨出系统正在尝试做什么,而且我选择了错误的选项并且失去了工作时间.
这已经发生了三个多星期的无数次.
我使用的是OS X 10.7.2和XCode 4.2.1.代码在我的MacBook硬盘上.
有人知道为什么会这样吗?
谢谢.

目前我在ios中使用块消费肥皂网服务我的源代码如下
NSString *xml = requestXMLToSent;
NSString *msgLength = [NSString stringWithFormat:@"%lu", (unsigned long)[xml length]];
NSURL *serviceURL = [NSURL URLWithString: url];
NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:serviceURL];
[urlRequest addValue:@"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
[urlRequest addValue: serviceURL forHTTPHeaderField:@"SOAPAction"];
[urlRequest addValue:msgLength forHTTPHeaderField:@"Content-Length"];
[urlRequest setHTTPBody: [xml dataUsingEncoding:NSUTF8StringEncoding]];
[urlRequest setHTTPMethod:@"POST"];
[NSURLConnection sendAsynchronousRequest:urlRequest queue:[[NSOperationQueue alloc]init] completionHandler:^(NSURLResponse *response, NSData *data, NSError *connectionError) {
if (connectionError == NULL) {
NSHTTPURLResponse * httpResponse = (NSHTTPURLResponse *) response;
NSInteger statuscode = httpResponse.statusCode;
if (statuscode == 200) {
NSString *responseString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; …Run Code Online (Sandbox Code Playgroud) 这是完整的错误:
Objective-C方法'imagePickerController:didFinishPickingMediaWithInfo:'由方法'imagePickerController(_:didFinishPickingMediaWithInfo :)提供'与协议'UIImagePickerControllerDelegate'中的可选需求方法'imagePickerController(_:didFinishPickingMediaWithInfo :)'冲突
它出现在我的ViewController.swift文件中的第一个函数上:
func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [NSObject : AnyObject]){
if let pickedImage = info[UIImagePickerControllerOriginalImage] as? UIImage {
ImageView.contentMode = .ScaleAspectFit
ImageView.image = pickedImage
}
dismissViewControllerAnimated(true, completion: nil)
}
Run Code Online (Sandbox Code Playgroud)
我正在尝试按照本教程:http://www.codingexplorer.com/choosing-images-with-uiimagepickercontroller-in-swift/
从错误方法,我收集有一个方法didFinishPickingMediaWithInfo,它是从imagePickerController基类得到的,它不喜欢我试图覆盖它.但这就是我所知道的.我在网上找到的所有imagePickerController函数都是这样的.我究竟做错了什么?
我正在使用Xcode 7,如果这有所作为.]
以下是在实例方法中直接使用静态成员:
public struct RankSet {
private let rankSet : UInt8
static let counts : [UInt8] = [
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4,
... // More of the same
4, 5, 5, 6, 5, 6, 6, 7, 5, 6, 6, 7, 6, 7, 7, 8
]
public var count : Int {
get {
// The error is on the following line
return Int(counts[Int(rankSet)])
}
}
}
Run Code Online (Sandbox Code Playgroud)
Swift产生以下错误:
静态成员
'counts' …