IDE运行问题
__zhangheng
这个作者很懒,什么都没留下…
展开
-
ecTaskLoadEntitlements failed error=22
问题:SecTaskLoadEntitlements failed error=22 这个问题基本都是Alamofire库导致的。解决:1.重新下载证书,重新签名下。(注意选择cer 和 p12)2.然后(快捷键cmd+,),Accounts -> Manage Certificates -> 左下角+号,选择证书类型(你开发的ios,dev就选ios dev,...原创 2019-11-22 13:41:52 · 1372 阅读 · 0 评论 -
Fixing ARC error when using Objective-C object in struct
问题:typedef struct{ NSString *escapeSequence; unichar uchar;}解决方式:typedef struct{ __unsafe_unretained NSString *escapeSequence; unichar uchar;}MyStruct;...原创 2019-11-18 13:57:11 · 87 阅读 · 0 评论 -
gen_entitlements.py: No such file or directory
纠结了很久的错误/Users/UserName/Library/Developer/Xcode/DerivedData/xxx-beqfpakeslcfgjghvltweyjadfjk/Build/Intermediates/xxx.build/Debug-iphoneos/xxx.build/Script-B354780B144C8CA2002C6922.sh: line 4: /Develop...原创 2014-10-10 15:12:06 · 2011 阅读 · 0 评论 -
No such file or directory (/Users/appleapple/Library/Developer/Xcode/Derived
今天又出这样的错误了,以前也有些人问过我,所以决定写一下。在真机运行程序的时候提示“Couldnotlaunch'appname'”,Nosuchfileordirectory(/Users/appleapple/Library/Developer/Xcode/DerivedData/FCHK-bdgaoltxzddyrogqdfuhtasreoxs/Build/...转载 2014-10-10 14:55:54 · 1506 阅读 · 0 评论 -
CUICatalog: Invalid asset name supplied: (null), or invalid scale factor: 2.000000
debug这样的错误:CUICatalog: Invalid asset name supplied: (null), or invalid scale factor: 2.000000解决方法:错误原因:在ios7中设置imageView的image时,实例化image时不能传nil,(self.imageView.image = [UIImage imageNamed:ni...原创 2014-10-09 11:27:55 · 1219 阅读 · 0 评论 -
Choose a destination with a supported architecture in order to run on this device.
最近遇到了这么一个问题,编译没有报错,但是偏偏无法刷到手机上。Choose a destination with a supported architecture in order to run on this device.以前碰到这样的问题的解决方法不外乎就是几种:1、删掉原有的程序,重刷。2、clean掉原有的工程,关闭Xcode重新编译运行3、把iPhone或者mac重...转载 2014-08-06 16:20:00 · 474 阅读 · 0 评论 -
xcode编译报错unknown error -1=ffffffffffffffff Command /bin/sh failed with exit code 1
升级完xcode9.1之后,编译项目出现如下错误:CI今日构建时报出如下错误:/Users/xxx/Library/Developer/Xcode/DerivedData/Snowball-ebllohyukujrncbaldsfojfjxwep/Build/Intermediates.noindex/ArchiveIntermediates/ProjectName/Insta...转载 2018-03-29 21:25:14 · 1570 阅读 · 0 评论 -
super init isn‘t called on all paths before returning from initializer
我试图创建Swift编程的继承功能。我创建了ViewController超级类。然后我创建了另一个类作为ViewControllerA超类的子类名ViewControllerViewController类:import UIKitclass ViewController: UIViewController { //: public variables var area:...转载 2022-03-22 14:46:18 · 942 阅读 · 0 评论 -
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: library not found for -lGoogleAdMobAdsclang: error: linker command failed with exit code 1 (use -v to see invocation)解决办法:第一种:我有类似的“未找到库”问题。然而,这是因为我不小心使用的是.xcodeproj文件而不是.xcworkspace文件。(博主...原创 2019-06-21 17:51:44 · 25415 阅读 · 0 评论 -
[已验证]关于ld: file is universal (4 slices) but does not contain a(n) armv7s slice
1.升级涉及到的.a文件 //这种方式得等官网发布新的.a文件2.在target的Build Settings里面,将Build Active Architecture Only改成NO //之前网上看有人说改称YES,但是我改成YES不行,都改成NO就可以在真机跑了。问题ld: warning: ignoring file /Users/VV/Library/...原创 2014-10-22 17:40:11 · 2331 阅读 · 0 评论 -
"_OBJC_CLASS_$_CMMotionManager", referenced from:
参考:http://stackoverflow.com/questions/22164753/linker-error-with-sharekit-ios编译报错:"_OBJC_CLASS_$_CMMotionManager", referenced from:xxx解决方法:Looks like you are missing quite a few frame...原创 2014-11-26 11:40:26 · 5038 阅读 · 1 评论 -
the file “XXX” could not be opened because you don't have permission to view it
今天使用Xcode6,突然提示我"the file “XXX” could not be opened because you don't have permission to view it"说我没有权限.如下图最后问题找到了,首先说下产生问题的地方.修改了Info.plist文件中的Executable file项,还是按照Xcode5的经验,修改Executable file...转载 2014-12-15 10:46:05 · 2009 阅读 · 0 评论 -
Fastmonkey-xcode9.2/Xcode10.1 爬坑
本篇基于如下两套环境配置的总结:Xcode 9.2 + Fastmonkey-xcode9.2Xcode 10.1 + Fastmonkey-masterxcode9.2/Xcode10.1 执行后提示:Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'XC...转载 2019-05-14 17:44:07 · 634 阅读 · 0 评论 -
关于微信获取用户信息报errorcode:40001错,个人踩坑理解
这里只说一下根据access_token和openid获取用户信息的坑首先,有两个url都可以获取用户信息一个是:接口调用请求说明http请求方式: GEThttps://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN没报错即返回如下...转载 2019-05-20 17:26:33 · 1517 阅读 · 0 评论 -
Xcode 10 Error: Multiple commands produce,Info.plist
error: Multiple commands produce '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist':1) Target 'Optima...原创 2019-05-25 00:37:53 · 163 阅读 · 0 评论 -
OS X Framework Library not loaded: 'Image not found'
唯一要做的是将框架添加到应用目标选项卡中的Embedded binaries部分General。原创 2019-05-07 15:41:44 · 222 阅读 · 0 评论 -
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /
问题用mac使用gem命令遇到这样的问题:ERROR: While executing gem ... (Gem::FilePermissionError)You don't have write permissions for the /usr/bin directory.执行的命令是sudo gem install fastlane -NV遇到的坑已经用了最高权限,...转载 2019-05-07 10:49:54 · 23353 阅读 · 3 评论 -
SWIFT_VERSION'3.0'不受支持,支持的版本为:4.0,4.2,5.0。(在目标'InputMask'中)
修改项目 targets - swift language version - swift 4原创 2019-05-06 09:09:37 · 3371 阅读 · 3 评论 -
xcode9 以上,黄色警告处理!
警告:'characters' is deprecated: Please use String or Substring directly self.characters.count解决:let edit = "Summary"edit.count // 警报:'substring(to:)' is deprecated: Please use ...原创 2018-04-20 17:16:43 · 2722 阅读 · 1 评论 -
项目中导入HandyJSON (1.8.0) 会有错误弹出,导致项目编译不通过 #192
错误1:Integer has been renamed to BinaryInteger错误2:init?(type: Any.Type) {self.init(pointer: unsafeBitCast(type, to: UnsafePointer.self))if let kind = type(of: self).kind, kind != self.kind {return nil}...转载 2018-03-20 10:44:53 · 1416 阅读 · 0 评论 -
“`pod repo update` does not happen” error in CocoaPods
您可能有一个损坏的Specs存储库。Cocoapods建议您删除本地副本并重新关注。尝试:$ sudo rm -fr ~/.cocoapods/repos/master然后:$ pod setup我还建议你跑步:sudo rm -fr ~/Library/Caches/CocoaPods/在运行pod安装程序以清除缓存之前。这是他们的链接:http://blog....原创 2019-05-14 07:01:27 · 163 阅读 · 0 评论