iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
iOran
V2EX  ›  iDev

Objc & Swift 混编,相对于 Pure ObjC 的 ipa 文件大小变大探讨

  •  
  •   iOran · Dec 30, 2016 · 4619 views
    This topic created in 3437 days ago, the information mentioned may be changed or developed.
    针对 IOS Objc&Swift 混编的 App , ipa 文件大小增大一事,在 Itunes 上显示的大小,比如是 19.4M ,但在 iOS10 下,下载下来的文件, GetInfo 查看只有 10M 左右。是不是因为 iOS10 ,已经将 swiftFoundation 等包打入系统;而 iOS10 以下的系统,未打入的原因,造成 iTunes 统一将大小显示成 未打入各种 lib 的大小,所以看起来, ipa 比较大?

    我是参考如下的文章得出的假设: https://my.oschina.net/ilrrong/blog/800923
    8 replies    2017-01-09 18:28:41 +08:00
    GWesley
        1
    GWesley  
       Dec 30, 2016
    对的,从 iOS9 起系统就自带了 Swift 环境, app 尺寸大约会减少 8m 以上
    iOran
        2
    iOran  
    OP
       Dec 30, 2016
    @zzycn2012 谢谢
    fly2never
        3
    fly2never  
       Dec 31, 2016
    @zzycn2012 没有啊, 我这边 iOS10 以上, 下载的时候依然会包含 swift 环境
    fly2never
        4
    fly2never  
       Dec 31, 2016
    swift 工程中, 不要使用过多的动态库, 最好把动态库代码放进主工程编译, 这样可以使用 WMO, 减少文件大小, 也可以减少应用启动时间
    iOran
        5
    iOran  
    OP
       Dec 31, 2016
    @fly2never 那岂不是管理起来不方便?使用不了类似 cocoapod 的包管理工具。
    wohenyingyu02
        6
    wohenyingyu02  
       Jan 1, 2017 via iPhone
    @fly2never ios 里还能用动态库?孤陋寡闻了我
    fly2never
        7
    fly2never  
       Jan 9, 2017
    @wohenyingyu02 iOS8 之后支持
    fly2never
        8
    fly2never  
       Jan 9, 2017
    @iOran 没有办法, 我用的 git submodule 来支持
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3099 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 03:41 · PVG 11:41 · LAX 20:41 · JFK 23:41
    ♥ Do have faith in what you're doing.