欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

如何打包ipa文件

程序员文章站 2022-06-01 23:19:54
...

如何打包ipa文件

如何打包ipa文件

 

1. 新建一个工程

//
//  RootViewController.m
//  YouXianMing
//
//  Copyright (c) 2014年 Y.X. All rights reserved.
//

#import "RootViewController.h"

@interface RootViewController ()

@end

@implementation RootViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    UILabel *label      = [[UILabel alloc] initWithFrame:self.view.bounds];
    label.text          = @"YouXianMing";
    label.textAlignment = NSTextAlignmentCenter;
    label.font          = [UIFont fontWithName:@"HelveticaNeue-UltraLight"
                                          size:50.f];
    [self.view addSubview:label];
}

@end

2. 然后选择 Product -> Archive

如何打包ipa文件

 

3. 选择Distribute...以及后续操作

如何打包ipa文件

如何打包ipa文件

如何打包ipa文件

如何打包ipa文件

 

4. 生成了ipa包

如何打包ipa文件

大功告成:)

 

 

附录:

如何将ipa包安装到设备上呢?

打开iTunes,然后,在文件里面选择添加到资料库...,选择已经生成好的ipa文件

如何打包ipa文件

之后就会出现在iTunes中,如下图示

如何打包ipa文件

点击安装后回变成将要安装

如何打包ipa文件

然后选择同步

如何打包ipa文件

之后就安装好了:)

如何打包ipa文件