当尝试使用Xcode编译时,我收到以下错误:
**Ld /Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator/iKosher.app/iKosher normal i386
cd /Users/doronkatz/Sites/xCode/iKosher
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Xcode4/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Xcode4/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Xcode4/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk -L/Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator -L/Users/doronkatz/Sites/xCode/iKosher -F/Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator -filelist /Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Intermediates/iKosher.build/Debug-iphonesimulator/iKosher.build/Objects-normal/i386/iKosher.LinkFileList -mmacosx-version-min=10.6 -all_load -ObjC -Xlinker -objc_abi_version -Xlinker 2 -lz -framework Security -framework CFNetwork -framework CoreData -framework Foundation -framework UIKit -framework CoreGraphics -framework QuartzCore -o /Users/doronkatz/Library/Developer/Xcode/DerivedData/iKosher-bphnihrngmqtkqfgievrrumzmyce/Build/Products/Debug-iphonesimulator/iKosher.app/iKosher
Undefined symbols for architecture i386:
"_UTTypeCreatePreferredIdentifierForTag", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
"_UTTypeCopyPreferredTagWithClass", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
"_kUTTagClassMIMEType", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o
"_kUTTagClassFilenameExtension", referenced from:
+[ASIHTTPRequest mimeTypeForFileAtPath:] in ASIHTTPRequest.o …
Run Code Online (Sandbox Code Playgroud) 我想知道如何压制警告:
类别正在实施一种方法,该方法也将由其主要类实现.
我有一个特定的代码类别:
+ (UIFont *)systemFontOfSize:(CGFloat)fontSize {
return [self aCustomFontOfSize:fontSize];
}
Run Code Online (Sandbox Code Playgroud) 我有一个NSArray
并且需要过滤掉任何null的字符串,或者更确切地说,有''(空字符串).我怎么做?我试过做:
NSPredicate *predicateName = [NSPredicate predicateWithFormat:@"(name!=nil)"];
Run Code Online (Sandbox Code Playgroud)
但这似乎不起作用.或许它确实如此,但有不同种类的空...
在RegEx
,我想找到标签和两者之间的所有内容XML tags
,如下所示:
<primaryAddress>
<addressLine>280 Flinders Mall</addressLine>
<geoCodeGranularity>PROPERTY</geoCodeGranularity>
<latitude>-19.261365</latitude>
<longitude>146.815585</longitude>
<postcode>4810</postcode>
<state>QLD</state>
<suburb>Townsville</suburb>
<type>PHYSICAL</type>
</primaryAddress>
Run Code Online (Sandbox Code Playgroud)
我想找到标签和之间的所有内容primaryAddress
,并将其删除.
primaryAddress
标签之间的所有内容都是变量,但我希望每当我得到时删除整个标签和子标签primaryAddress
.
任何人都知道如何做到这一点?
我有xCode 4.2的问题.我在构建时遇到此错误:
2011-06-18 13:35:49.839 Validation[4110:607] *** Warning: Defaulting to the standard codesign tool
warning: iPhone/iPod Touch: application executable is missing a required architecture. At least one of the following architecture(s) must be present: armv6 (-19033)
Unable to validate your application. - (null)
Run Code Online (Sandbox Code Playgroud)
我查看了我的项目设置,它有:
architectures: Standard (arm7) - ${ARCHS_STANDARD_32_BIT)
Build active architecture only : NO
Run Code Online (Sandbox Code Playgroud)
不知道是什么
一段时间以来一直在努力.我正在尝试在我的iphone上访问REST api,并且遇到了可以帮助我的ASIHTTP框架.所以我做了类似的事情
//call sites, so we can confirm username and password and site/sites
NSURL *url = [NSURL URLWithString: urlbase];
ASIHTTPRequest *request = [[[ASIHTTPRequest alloc] initWithURL:url] autorelease];
[request setUsername:@"doronkatz%40xx.com" ];
[request setPassword:@"xxx"];
Run Code Online (Sandbox Code Playgroud)
urlbase
REST站点的URL 在哪里.
现在,开发人员告诉我这个框架可能存在问题或错误,而且它没有正确传递头文件.是否有另一种方法可以通过身份验证来测试或访问网络REST位置?
突然之间我得到了这个git错误:""git status --porcelain failed""当我做一个git状态时......那是什么意思?
我想知道是否有人知道XCode 4.1如何创建一个shell脚本.该选项不存在,但在最新版本中可能会调用其他选项.钽
我想知道是否有人能够告诉我,从头开始一个新的应用程序,我将如何组织一个通用(iPhone/iPad)iOS应用程序.我注意到使用xCode Beta的默认模板,它为您提供了iPhone和iPad的共享AppDelegate和子类appdelegates.
现在,您如何通过逻辑来确定要使用哪个应用委托,如何知道哪个应用委托实例化并使用默认模板不会进行状态.如果我要在iPhone appDelegate中写一下,我怎么知道这只适用于iPhone iOS?
我正在使用XCode 4并使用CoreData.现在,我如何为实体生成类?我以前在XCode 3中通过单击图表实体,转到File-> New并选择NSManagedObject类来完成它.
由于某种原因,我似乎无法在XCode 4中找到它,它没有出现在对话框中......