Xcode 5.1发布说明以及iOS 7.1发布

iOS18适配踩坑实录:Xcode16下YYCache崩溃与ADClient废弃的终极解决方案 本文深度解析了iOS 18与Xcode 16适配过程中的两大核心难题:YYCache因SQLite句柄管理不当导致的运行时崩溃,以及ADClient等API废弃引发的编译链接错误。文章提供了详细的修复方案与代码示例,并分享了系统性的适配策略与工具链检查方法,帮助开发者高效完成平台升级。 阅读详情

Xcode 5.1发布说明



今天苹果在发布iOS 7.1的同时,也更新发布了Apple TV和Xcode 5.1。以下是来自于苹果开发者中心的Xcode 5.1发布说明。
小伙伴们果断升级了(话说这阵子真心忙,真心累,少写微博了)

New Features
 
Debugging
1.Quick Look can be implemented for developer defined classes.
When an instance of a custom class is viewed with Quick Look in the debugger variables view or a data tip, the debugger presents it using a method named  -debugQuickLookObject defined in the class implementation. For details on how to use this capability, see  Quick Look for Custom Types in the Xcode Debugger. (12723736)
 
2.Log breakpoint actions now print out the logical value of expressions.
For example, a log breakpoint action such as " myString = @myString@" now prints the value of myString, rather than the pointer value. (13211695)
 
Editing User Interfaces
1.Interface Builder documents can contain specific information about new features they use and the OS versions they require, allowing previous versions of Xcode to display better warning messages when trying to open such documents. (7659982)
 
2.Building interfaces in Interface Builder using auto layout offers the full suite of possible constraint types: aspect ratios, proportional sizes and positions, cross attribute alignments, and a new constraint inspector with features for editing nearly all properties of a constraint.
 
3.The Interface Builder constraint Attributes inspector shows a constraint's items and attributes and allows editing of the attributes. This feature enables the ability to create cross-attribute constraints such as  view1.centerY = view2.bottom. (13739009)
 
4.You can use Interface Builder to edit the relation of any type of constraint, including alignment constraints (for instance,  view1.leading <= view2.leading) and equal size constraints (for instance,  view1.width >= view2.width). (14721954)
 
5.You can create aspect ratio and proportional sizing constraints and edit the multiplier of constraints in Interface Builder. The multiplier can be a decimal number (for example,  0.5), a fraction (for example,  1/2), or an aspect ratio (for example,  1:2). (11935843)
 
6.Constraints attached to ambiguous views in Interface Builder are drawn orange only in the axis with ambiguity. This makes it faster to identify a potential problem in the canvas. (15114120)
 
7.The Interface Builder canvas now displays overlay scrollers when appropriate, based on the “Show scroll bar” setting in the General pane in System Preferences. (10069033)
 
8.The Interface Builder inspector now has support for:
NSTableView - floatsGroupRows property (9617000)
UISegmentedControl - apportionsSegmentWidthsByContent property (9950528)
UITableView - sectionIndexBackgroundColor property (14776025)
 
Setting “Detail” button type for prototype  UITableViewCell - editingAccessoryType property (15039987)
 
Instruments and Symbolication
1.Instruments now finds symbols much more reliably.
If symbols aren't showing up automatically, try the following:
        When Spotlight indexing is disabled for Xcode derived data, such as when using /tmp, add a global list of additional search paths configured in the Instruments preferences.
        The context menu for an address now includes the option “Symbolicate with DSYM” to add a specific symbol file.
        Use the File menu Symbols command to see a more detailed list of the state of individual executables and libraries.
               Green lights indicate the presence of symbols and source information.
               Yellow lights indicate libraries with some symbols but can still benefit from locating a dSYM.
               Red lights indicate situations that prevented symbolication. (14269449)
 
2.The  instruments command-line tool now supports specifying the simulator SDK and device type using the  -w flag. To see a list of the supported simulator configurations as well as attached devices, execute  instruments -s devices in a Terminal window. (14996865)
 
Scripted installation
1.Installing Device Support
Run from the command-line, Xcode.app takes the new command-line argument,  -installComponents. When Xcode is run from a command-line script with this option, it installs the required device support packages and then quits. (15127411)
 
General
1.Emoji and other Unicode surrogate pairs are supported in scheme settings and in project files. (14837623 & 13827044)
 
Changes
1.Building
Arm64 is now included in the “Standard architectures” setting.
 
Xcode 5.0 introduced support for building 64-bit iOS applications but it was not enabled by default. To enable the option of building 64-bit in Xcode 5.0, an architectures setting was provided: “Standard Architectures Including 64-Bit”  (ARCHS_STANDARD_INCLUDING_64_BIT).
 
With the introduction of Xcode 5.1, arm64 is included in the default "Standard architecture” build setting. This results in projects using the default setting automatically building for arm64 along with the standard 32-bit architectures.
 
Note: Be aware of the following architectures issues when opening your existing projects in Xcode 5.1:
    When building for all architectures, remove any explicit architectures setting and use the default Standard Architectures setting. For projects that were previously opted-in using “Standard Architectures           Including 64-Bit”, switch back to the “Standard architectures” setting.
    When opening an existing project for the first time, Xcode 5.1 may display a warning about the use of the Xcode 5.0 architectures setting. Selecting the warning provides a workflow to revise the setting.
    Projects not able to support 64-bit need to specifically set the architectures build setting to not include 64-bit.
 
2.Projects configured to use ”Standard Architectures Including 64-bit” will be converted to “Standard Architectures $( ARCHS_STANDARD).
 
Compiler
1.As of Apple LLVM compiler version 5.1 (clang-502) and later, the optimization level -O4 no longer implies link time optimization (LTO). In order to build with LTO explicitly use the  -flto option in addition to the optimization level flag. (15633276)
 
Testing
1.The  gcov tool for code coverage testing has been reimplemented. The new version uses the llvm -cov tool from the LLVM project. It is functionally equivalent to the old version for all significant features. The location of  gcov within Xcode has also moved, use xcrun to invoke it. If you find problems, please file bug reports. For this release, you can still use the old version of  gcov from GCC, which is available as  gcov-4.2. 11919694 updated
 
Known Issues
 
Editing User Interfaces
1.Custom views added to a stack view in Interface Builder can get stuck in a “misplaced views” (inconsistent) state.
As a workaround, set a placeholder intrinsic size for the custom view with appropriate content hugging and compression resistance priorities. (15778653)
 
Testing
1.Automated tests run in iOS Simulator may fail with an error similar to this:
Test target [test name] encountered an error (Test process exited with code -1)
Attempt recovery by quitting and restarting the simulator. (15929053)
 
Xcode Server
1.Continuous integration features (bots) of Xcode 5.1 require OS X Server v3.1 (or a version of OS X Server 3.1 beta) or later. 16225068 updated
 
2.If there are old copies of Xcode on the server host, Xcode Server sometimes shows all the simulators. Only attempt to use simulators appropriate for use with Xcode 5.1. (15465692 & 15153869)
 
3.Xcode Server will offer All Devices or All Simulators even if there are none that fit the criteria for the project. If you select an inappropriate device or simulator, you may get an error similar to:
xcodebuild: error: No destinations were specified with the -destination flag which were valid for the specified scheme <scheme_name>.
 
To prevent this from happening, specify only valid devices or simulators for your project. (15465222)
 
4.Sometimes when you’re attempting to create a new local repository on OS X Server through Xcode, Xcode may display an error message similar to:
xcode-select: note: no developer tools were found at '/Applications/Xcode.app', requesting install. Choose an option in the dialog to download the command line developer tools.
 
To resolve this problem, follow the prompts in the dialog displayed on the OS X Server host system. (15475078 & 15486464)
 
5.Sometimes after upgrading to Xcode 5.1 and OS X Server 3.1, the first time you add a server you may see an error similar to:
"<Server> is running a version of OS X Server that cannot be used with this version of Xcode."
 
Quit and restart Xcode one time to clear this message. 16217715 updated
 
iOS Simulator
1.Performance issues can arise when running apps within the iOS Simulator on OS X Mavericks with a simulated OS version of iOS 6.1 or earlier.
A workaround is to disable timer coalescing while using the iOS 6.1 or earlier simulator by executing the following command in a Terminal window:
sudo sysctl -w kern.timer.coalescing_enabled=0 (15501929)
 
2.iOS Simulator sometimes stops responding to hardware keyboard.
Quitting and relaunching the simulator usually corrects this. (14642684)
 
General
1.When validating multiple applications in sequence using the Xcode Organizer, erroneous warnings about bundle IDs may be emitted.
If these warnings occur, quit & relaunch Xcode in between validations. 15113664 updated
 
2.Executables created by Xcode 5.1 may crash on OS X v10.5. (15852259) updated
 
Resolved Issues
 
Testing
1.The  XCTAssertEqual macro (formerly  STAssertEquals using OCUnit) correctly compares scalar values of different types without casting, for example,  int and  NSInteger. It can no longer accept nonscalar types, such as structs, for comparison. (14435933)
 
General
1.OS X apps that require a provisioning profile, such as those using iCloud, now build, are code-signed correctly, and launch. (15841159)
 
Deprecations
1.OCUnit and the SenTestingKit framework are deprecated and will be removed from a future release of Xcode. Source code using OCUnit generates warnings while being compiled in Xcode 5.1.
Migrate to XCTest by using the “Edit > Refactor > Convert to XCTest…” menu command. .
 
2.The ATS framework is deprecated. Source code using ATS APIs will generate warnings while being compiled. For version 10.8, there will be no loss of functionality but there could be areas where performance will suffer.
Replace all ATS code (including  ATSUI) with  CoreText. ATS functionality will be removed in future OS X releases. More information about this change is available in  Core Text Programming Guide.

Xcode16 & iOS18 编译问题适配 表示:iOS7.1-iOS14.5可用,iOS18彻底废弃,会在iOS18系统上编译失败。2.自定义cell,添加到cell视图上会崩溃,添加到contentView上,则不会崩溃。参考链接:https://www.jianshu.com/p/cca4d4d8145d。3.控制器里的maskView视图属性,添加到控制器view,不会崩溃。修改自定义视图,将自定义子组件名为maskView的视图进行重命名。1.自定义UIView子视图,存在同名属性maskView,会崩溃。 阅读详情

相关推荐

Xcode 12.1导出ipa包(适合新手)

前言 因(生)工(活)作(所)需(迫)求,需要从Unity导出Xcode工程,接入IOS SDK,并导出ipa包供测试和上传应用到appStore。新手一枚记录一下导出ipa步骤,方便自己和大家学习。Xcode版本为12.1 ipa文件简介 ipa是Apple程序应用文件iPhoneApplication的缩写。简单来说,ipa 文件本质上是一个 zip压缩包(不是 rar 或 7z 包),跟安卓apk文件性质是一样的。 Xcode打包步骤 1.先设置证书,测试建议用distribution证书,发布版本建

北京朝阳区精神病院院长 1万+

iOS7.1+Xcode5.1

iOS7.1终于更新了,第一时间升级,由于系统动画变快,首先的感觉就是用着舒畅多了;Xcode5.1下了一半,速度实在太慢,下面看看详细的: Xcode 5.1 iOS 7.0 to iOS 7.1 API Differences   北京时间 3 月 11 日凌晨,iOS 7.1 正式版终于发布。虽然它没有和新版本的 iTunes 音乐节应用一起到来,但总算是符合了之前“音

 ideaOS^(BOOL coding) 2655

Xcode打包与发布全攻略:将你的应用带上App Store

Xcode提供了一套完整的工具和流程,帮助开发者将应用打包并发布到App Store。通过本文的详细指导,开发者可以掌握Xcode的打包和发布技巧,确保应用顺利上线。本文深入探讨了Xcode的打包和发布流程,从准备打包到提交审核,再到自动化发布,提供了全面的指导和代码示例。希望能够帮助开发者在Xcode项目中顺利实施打包和发布,将应用成功带到App Store,让全球用户都能体验到你的作品。

2401_85842555的博客 2090

解决Xcode中运行出现"cannot run using the selected device"、"cannot run on the selected destination"或无反应问题

[iOS的解决Xcode中运行出现“不能运行使用选定的设备”,“不能运行在选定的目标”或无反应问题 问题 当使用的Xcode4 Xcode cannot run using the selected device. cannot run on the selected destination. 建设完成后无反应 可能导致这个问题的原因有以下几种: TARG

jalen_yuchi的专栏 1万+

AdClient:演示客户端应用程序,用于测试JSON服务器

AdClient 演示客户端应用程序,用于测试JSON服务器。 安装:使用Android Studio克隆此仓库,然后为您的Android手机构建或生成签名的APK。 谢谢。

MTK PE+2.0介绍

  PE+2.0介绍:   1.      PE+2.0的状态机: 2.      升压波形协议及编码规则: PE+2.0软件设计:   在充电器类型为标充且底层电量SOC在1%—95%之间时,开始PE+2.0升压充电器的检测:首先将VBUSreset至5V,之后发送8.5的current pattern再获取此时VBUS电压和8.5V比较,若其与8.5的差值绝对值在0.5之...

raydom07的博客 1万+

基于H5的App在IOS App Store的打包发布流程

基于H5的App在IOS App Store的打包发布流程0、说明1、ios证书配置(1)创建CSR文件(2)申请开发者证书(3)申请推送证书(4)申请provisioning profile2、打包(1)WebStorm配置(2)XCode配置3、发布 0、说明 (1)最初是基于Cordova+Ionic开发后改为Cordova+Vue开发。 (2)开发时实在Windows平台下开发。 (3)开...

分享技术,传播知识! 4782

S32的进阶之路->3,S32DS新建/删除/导入工程

右击工程名,点击Delect进行工程删除。选中Delect project contents on disk则会彻底删除工程,不选中Delect project contents on disk工程文件会保存在工作空间中。在Improt Projects中选择工程所在文件夹,选中所需要导入的工程,勾选Copy projects into workspace。选中目标示例工程,点击Finish,完成创建工程。导入已有工程,右击右击Project Explorer空白处,选择Import。

LC_8575的博客 2227

Unity5.x发布IOS项目Xcode8免签证调试发布教程

https://www.jianshu.com/p/b0fb49fbcc14 最近尝试发布一下IOS项目,发现现在发布已经简单很多了,不需要开发者账户也能简单快捷进行真机调试。 调试: 1.准备工作 ①硬件:Mac机一台; Iphone或Ipad设备一台 ②注册Apple账号一个 ③下载Unity5.x,搜索Unity下载 ④到AppStore下载Xcode8 ...

a554671102的博客 183

VS2015编译配置GDAL(图文并茂、超详细!!!)

文章目录一、GDAL介绍二、下载GDAL三、修改源代码四、工具命令提示符操作五、编译GDAL六、安装GDAL七、在VS2015的项目中配置GDAL八、添加环境变量九、测试是否配置成功 一、GDAL介绍 GDAL(Geospatial Data Abstraction Library)是一个在XMIT许可协议下的开源栅格空间数据转换库。它利用抽象数据模型来表达所支持的各种文件格式。它还有一系列命令行工具来进行数据转换和处理。OGR是GDAL项目的一个分支,功能与GDAL类似,只不过它提供对矢量数据的支持。因此

weixin_46196863的博客 3757

STM32 FMC驱动AD7606实战:从硬件连接到时序调试全流程解析

本文详细解析了STM32 FMC驱动AD7606的全流程,包括硬件连接、FMC接口配置、驱动程序设计和时序调试。通过实战案例,展示了如何利用STM32的FMC总线实现与AD7606的高效数据传输,特别强调了电源设计、信号连接和PCB布局等关键要点,为嵌入式数据采集系统开发提供了实用指导。

aa123的博客 1005

Qt Qt5.15+Xcode12+BigSur macOS及iOS开发环境搭建

目录1 简述2 安装2.1 Xcode安装2.2 Qt安装 1 简述 Qt5.15开始就不提供个人的离线安装包了,有两种方式可以安装。本文采用在线安装方式。 第一是下载源码,自己编译,地址在这https://download.qt.io/archive/qt/5.15/5.15.0/single/ 第二个是在线安装,登陆Qt个人账户,可以选择Qt5.9到目前最新Qt6之间的版本。估计这一个在线安装包以后版本更新不会换了,还是这个安装包搞定下载安装。只会在官网发布源码。地址在这http://download.

我是唐 5084

【TC3xx芯片】TC3xx芯片UCB详解

TC3xx芯片UCB详解

qq_36056498的博客 1万+

iOS7和Xcode5初体验(多图杀猫) -毛玻璃时代的来临

WWDC2013来了,一夜未眠。没有兴奋,没有惊喜,没有失望,只有落寞。 不管怎样,WWDC2013 keynote还是有一些亮点,这里说一下我个人感兴趣的几个内容。 首先是这次keynote上唯一的第三方开发商产品展示-AnkiDrive的智能玩具。虽然还只是玩具车,但已经可以看到这家专注人工智能相关产品公司的实力。据说他们已经拿到5000万美元的投资,我隐约有一种感觉,苹果已经逐渐

richeninfo的专栏 1986

YOLOv8高级应用实战:多目标跟踪+实例分割+小样本检测(工业/安防场景落地指南)

安防监控中,需要跟踪多个行人的运动轨迹,而不只是框出“这是行人”;工业质检时,要精确分割出零件的缺陷区域(像素级),而不是只给一个粗略的矩形框;罕见场景下(如特殊故障检测、稀有动物识别),只能收集到几十张样本,普通训练方法精度惨不忍睹。我在落地工业安防和质检项目时,把YOLOv8的高级功能摸了个遍,踩过“多目标跟踪遮挡丢帧”“实例分割边缘模糊”“小样本检测过拟合”等一系列坑,最终总结出这套可直接复用的实战方案。多目标跟踪(ByteTrack)、实例分割、小样本检测。

专注于Python爬虫开发,分享爬虫技巧、项目实战与反爬经验,使用Scrapy、BeautifulSoup等工具,解决数据抓取难题。 750

【NVMEM子系统】二、NVMEM驱动框架

该子系统整体架构不算太大,还是比较容易去理解的,下面我们一起去一探究竟!,该子系统主要用于实现EEPROMEfuse等非易失存储器的统一管理。在早期,像EEPROM驱动是存放于目录下,由于没有做到好的抽象,每次需要去访问相应内存空间,都需要去复制几乎一样的代码,去注册sysfs,这是一个相当大的抽象泄露。NVMEM子系统就是为了解决以往的抽象泄露问题。

Donge's Blog 1715

在xcode6.1和ios10.10.1环境下实现app发布

之前写过在xcode6.1和ios10.10.1环境下实现真机测试,以及最近提交的app一直在审核当中,所以木有发布如何实现app发布来分享给大家。刚好昨天app审核通过了,所以就分享一篇如何实现app发布。 第一步: 创建app发布证书以及配置文件 1.  进入ios开发中心 2. 点击进入 Certificates,Identifiers & Profiles 3. 说明:因为

Flying_in_the_world的专栏 372

在 SAP BTP Cloud Foundry 环境中开发 SAP HANA 的完整实战路线图

SAP HANA Cloud迁移路径解析:从本地到云原生的数据库现代化 本文梳理了SAP HANA在Cloud Foundry环境中的架构定位和实施路径,针对不同起点的项目提供迁移建议。核心内容包括: SAP HANA Cloud在Cloud Foundry中的双重角色:既作为平台服务提供数据库实例,又通过HDI容器管理MTA应用中的数据库工件。 针对四类典型项目起点的迁移策略: 绿地项目:直接采用CAP+SAP HANA Cloud组合 已有HANA service或XS advanced项目:需对照兼容

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 266

Xcode 5.1发布说明

Xcode 5.1发布说明 今天苹果在发布iOS 7.1的同时,也更新发布了Apple TV和Xcode 5.1。以下是来自于苹果开发者中心的Xcode 5.1发布说明。 小伙伴们果断升级了(话说这阵子真心忙,真心累,少写微博了) New Features   Debugging 1.Quick Look can be

happyrabbit456的专栏 1104

pscad IEEE标准系统搭建说明

pscad IEEE标准系统搭建说明,包含典型的IEEE 9节点、14节点、30节点、39节点和118节点系统。内含标准测试系统的原始数据和潮流结果。

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

Unity 发布IOS平台并部署到真机上测试的方法

准备 Mac OS系统 使用Unity做IOS开发,需要一台苹果系统的电脑,如果没有,那就用虚拟机或者安装黑苹果吧,虽然Windows版Unity也可以跨平台发布IOS,但是问题多的让你怀疑人生。 虚拟机安装Mac OS请参见:VMware 14虚拟机安装Mac OS 10.14详细教程 安装Mac版Unity 软件 在Unity官网下载Mac版Unity,最好使用安装器进行安装,可以选择你所需要...

爱尚游Bin的博客 6468

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Xcode5.0安装IOS7之前版本的模拟器

http://simman.cc/article/2316/ 前段时间Apple发布了Xcode的5.0,所以跟风把xcode由4.6.3升级到了5.0版本,因为考虑到了有一些插件还不支持5.0版本,所以就把4.6.3保存了一份,当然Xcode5.0默认只有IOS7的模拟器,考虑到要做7以下版本的适配,所以又下载了ios6.0、ios6.1的模拟器,过了一段时间,Xcode又升级到了5.

起点 2624

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

Xcode12.4发布说明(翻译)

Xcode 12.4包含了iOS 14.4, iPadOS 14.4, tvOS 14.4, watchOS 7.2, 以及 macOS Big Sur 11.1的SDK。Xcode 12.4支持iOS 9及以上版本,tvOS 9及以上版本,watchOS 2及以上版本。Xcode 12.4需要在安装有macOS10.15.4及以上的版本的电脑上使用。

郭永明的技术专栏 3322

iOS 同时兼容 Xcode 7 和 Xcode 8

做为 iOS 开发者,你肯定会对 iOS 10 中的新特性感到无比兴奋,并迫不及待地想要在应用中进行实践。虽然你想马上就动手以便第一时间就能“上船“。但 iOS 10 正式上线却是几个月以后的事情,而且在那之前,你还需要保持每几周就发布一次的频率。这个情况听起来是不是跟你现在的处境很像呢? 当然,目前你还不能用 Xcode 8 来编译需要发布的应用——因为它无法通过 App Store 的验

u014068781的专栏 2927

Unity5.x发布IOS项目至Xcode8教程

  最近尝试发布一下IOS项目,发现现在发布已经简单很多了,不需要开发者账户也能简单快捷进行真机调试。 1.准备工作 ①硬件:Mac机一台; Iphone或Ipad设备一台 ②[注册](https://secure2.store.apple.com/cn/shop/sign_in?c=aHR0cDovL3d3dy5hcHBsZS5jb20vY24vfDFhb3MzZWFiN2VjMTY3NjNj...

PA_的博客 783

iOS证书说明和发布内购流程整理及 证书申请

来源:http://www.cocoachina.com/ios/20150521/11889.html http://my.oschina.net/lujianing/blog/416676 http://blog.csdn.net/holydancer/article/details/9219333 网上关于苹果证书的生成和设置的教程比较多,但大多数只是讲了相关流程和步骤,有的也

人生起落,生活苦甜,坚持追求! 3944

iOS 应用发布

苹果为广大的开发者提供了一个很好的

余书懿 1万+
上一篇: How To Implement Search Bar in iOS 7 Using Storyboard
下一篇: android 开发之ScrollView 截屏代码
geekcoder
博客等级 码龄14年 78粉丝 142原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值