草庐IT

after_install

全部标签

ios - 激活约束 : and deactivateConstraints: not persisting after rotation for constraints created in IB

新的NSLayoutConstraint方法activateConstraints:和deactivateConstraints:似乎无法与IB创建的约束一起正常工作(它们确实可以正常工作对于代码创建的约束)。我用一个按钮创建了一个简单的测试应用程序,该按钮具有两组约束。已安装的一组具有centerX和centerY约束,另一组未安装的具有顶部和左侧约束(常量10)。按钮方法切换这些约束集。这是代码,@interfaceViewController()@property(strong,nonatomic)IBOutletCollection(NSLayoutConstraint)NSA

ios - 取消 dispatch_after() 方法?

这个问题在这里已经有了答案:Preventdispatch_after()backgroundtaskfrombeingexecuted(11个答案)关闭7年前。有没有办法取消dispatch_after()计划在未来的某个时间,并且到目前为止还没有解雇?我正在尝试为来自服务器的更新制作一个类似于调度程序的东西,这种方法就像我想要的那样,但是,我很想在某个时候取消并重新安排它。完全有可能还是我必须回退并使用NSTimer?

ios - 自动 ARC 转换后 : Assigning retained object to unsafe property; object will be released after assignment

我刚刚使用Xcode的自动重构将一个旧项目转换为ARC。@property(nonatomic,retain)NSMutableArray*cards;被替换为:@property(nonatomic)NSMutableArray*cards;这是有道理的,因为我读到的是“强”是默认状态。但是,以下行在标题中给我错误:self.cards=[[NSMutableArrayalloc]initWithCapacity:54];通过在原来保留的位置添加strong来解决错误:@property(nonatomic,strong)NSMutableArray*cards;但是...如果我需要

安装opencv时报错:Could not build wheels for opencv-python which use PEP 517 and cannot be installed direc

一、问题背景        最近写一批程序,需要用到opencv里面的函数,但是导入cv2的时候,新电脑提示没有安装,所以首先安装opencv的库,直接pipinstallopencv-python,不过报错了。        然后从镜像站中安装opencv,直接pipinstall-ihttps://mirrors.aliyun.com/pypi/simpleopencv-python,不过仍然报错,报错原因和上一次一样:Couldnotbuildwheelsforopencv-pythonwhichusePEP517andcannotbeinstalleddirectly 二、解决办法  

iOS 6 : Parent modal's modalPresentationStyle ignored after rotation

对于iOS6的iPad,我们有一个错误,模态视图Controller将扩展到全屏,即使它被告知使用“表单”演示文稿样式。但是,只有当有两个模态,一个父模态和它的子模态时,才会发生这种情况。这就是第一个模态框的创建和呈现方式:UINavigationController*navigationController=[[[UINavigationControlleralloc]initWithRootViewController:controller]autorelease];navigationController.modalPresentationStyle=UIModalPresent

ios - 运行 pod install 时我得到 The `master` repo requires CocoaPods 0.32.1, try update but still in 0.31

我正在尝试在xcode项目中安装cocoapods,但是在执行时:$podinstall我收到以下错误:SettingupCocoaPodsmasterrepo[!]The`master`reporequiresCocoaPods0.32.1-UpdateCocoaPods,orcheckouttheappropriatetagintherepo./Library/Ruby/Gems/2.0.0/gems/claide-0.5.0/lib/claide/command.rb:281:in`rescueinrun':undefinedmethod`verbose?'fornil:NilC

ios - 命令行中的 Xcode .mobileprovision 文件可以是 'installed' 吗?

我正在尝试使用在MacMini服务器(OSX10.7)上运行的bash脚本来自动化为我们的客户构建应用程序的过程。我的脚本基于来自github的非常有用的脚本,最初发布于https://gist.github.com/949831我正在使用xcodebuild构建应用程序,然后使用xcrun签署并嵌入mobileprovision文件。当我使用一个mobileprovision文件执行所有这些操作时,我使用GUI(例如双击)手动安装到Xcode中,它工作正常。如果我只是尝试使用通过SCP复制到服务器上的mobileprovision文件,它会失败(代码签名错误:无法找到配置文件“123

ios - iTunes 连接 : Can't save app information after uploading new binary

我正在尝试使用Xcode的Organizer上传一个iOS应用程序以供审核,我遇到了两个问题:案例一二进制文件上传,但当我按提交审核时,iTunesConnect给出错误:Yourappinformationcouldnotbesaved.Tryagain.Iftheproblempersists,contactus.案例二收到第一条错误消息后,我尝试上传新的二进制文件,但在Organizer中收到以下错误消息:ERRORITMS-9000:"RedundantBinaryUpload.Therealreadyexistsabinaryuploadwithbuildversion'1.

ios - Xcode 7 : App installation failed: A valid provisioning profile for this executable was not found

我已经搜索并几乎实现了max解决方案,但它没有安装任何应用程序,即使我只是创建示例单View应用程序也是如此。AppinstallationfailedAvalidprovisioningprofileforthisexecutablewasnotfound. 最佳答案 ==============更新====================我今天解决了这个问题。首先,转到~/Library/MobileDevice/ProvisioningProfiles。确保Xcode没有运行。然后,删除所有配置文件(如xxxxxxxx-xxx

ios - 代码: "This app could not be installed at this time."

以学习为目的使用我的第一个应用程序。一切顺利,但遇到了Xcode的问题。当我尝试在iPhone模拟器上运行该应用程序时,总是弹出此消息“此时无法安装此应用程序。”怎么了?尝试构建应用程序时没有错误。已尝试清理构建。重新安装pods。重新启动Xcode。清除了模拟器设备上的所有设置,但是问题仍然存在。错误消息没有给我任何信息。我可以查看另一个日志文件吗? 最佳答案 我设法找到了问题所在。问题是我在无效的属性列表文件中添加了一些键。我通过查看位于此处的日志文件发现了错误:~/Library/Logs/CoreSimulator/