如何在iPhone上创建自定义小部件

Traditionally, the iPhone home screen is thought of as something that’s not customizable. But thanks to home screen widgets, you can now put virtually anything on your home screen. Here’s how to create custom widgets on your iPhone.

传统上,iPhone主屏幕被认为是不可自定义的。 但是由于有了主屏幕小部件,您现在几乎可以在主屏幕上放置任何内容。 这是在iPhone上创建自定义小部件的方法。

iOS 14 and higher lets you put widgets on your iPhone home screen. And thanks to third-party apps, you can actually create your own widgets. Not only do you get new functionality on your home screen, but you can also create it in your own unique style.

iOS 14及更高版本允许您将小部件放置在iPhone主屏幕上 。 并且由于有了第三方应用程序,您实际上可以创建自己的窗口小部件。 您不仅可以在主屏幕上获得新功能,还可以以自己独特的风格创建它。

Using widgets, you can add reminders, calendar, photos, battery, and a lot more to the home screen. In this guide, we will cover two such apps.

使用小部件,您可以在主屏幕上添加提醒,日历,照片,电池等。 在本指南中,我们将介绍两个这样的应用程序。

Widgetsmith provides you with a couple of templates that you can customize. It’s an easy to use app. If you are looking for something more complex, where you can actually create different layouts in a widget, try the block-based Widgeridoo app.

Widgetsmith为您提供了两个可以自定义的模板。 这是一个易于使用的应用程序。 如果您正在寻找更复杂的东西,您实际上可以在小部件中创建不同的布局,请尝试基于块的Widgeridoo应用程序。

使用Widgetsmith在iPhone上创建自定义小部件 (Create Custom Widgets on iPhone Using Widgetsmith)

The Widgetsmith app lets you create widgets for display time, date, calendar, reminders, weather, health stats, tides, astronomy, and photos. Each widget can be customized in small, medium, and large sizes. Weather and tides sections are part of the paid $1.99/month subscription.

Widgetsmith应用程序使您可以创建用于显示时间,日期,日历,提醒,天气,健康状况,潮汐,天文学和照片的窗口小部件。 可以按小,中和大尺寸自定义每个小部件。 天气和潮汐部分是每月1.99美元付费订阅的一部分。

The process for customizing the widget is the same, so for this example, we are going to customize a Day and Date widget with custom fonts and colors.

定制小部件的过程是相同的,因此在此示例中,我们将使用自定义字体和颜色定制“日期和日期”小部件。

To get started, open the Widgetsmith app and go to Settings > Permissions. Here, grant permissions for features that you want to use (Reminders, Calendar, or Photos app).

首先,请打开Widgetsmith应用,然后转到“设置”>“权限”。 在这里,授予您要使用的功能的权限(“提醒”,“日历”或“照片”应用)。

Give Photos permission to Widgetsmith

Now, go to the “My Widgets” tab and tap the “Add (Size) Widget” for the size of the widget you want to create. In this example, we will create a Medium widget. Once it’s created, tap on the widget.

现在,转到“我的窗口小部件”选项卡,然后点击“添加(大小)窗口小部件”以获取要创建的窗口小部件的大小。 在此示例中,我们将创建一个Medium小部件。 创建完成后,点击小部件。

Create New Widget in Widgetsmith

Now, tap the widget preview.

现在,点击小部件预览。

Tap The Widget Preview in Widgetsmith

In the “Style” tab, you can see all the different styles for date widgets. Pick a style here. We’re going with the “Day & Date” option.

在“样式”标签中,您可以看到日期小部件的所有不同样式。 在这里选择样式。 我们要使用“日期和日期”选项。

Select The Style in Widgetsmith

Now, tap the “Font” option. We’re going with “SF Mono” here to give the widget a retro look.

现在,点击“字体”选项。 我们将在这里使用“ SF Mono”使小部件具有复古外观。

Select The Font in Widgetsmith

Next up, go to the “Tint Color” section, and choose an accent color. We’re going with “Red” here, but you can choose between a dozen options.

接下来,转到“色调颜色”部分,然后选择一种强调色。 我们在这里使用“红色”,但是您可以在许多选项中进行选择。

Select The Tint Color in Widgetsmith

Lastly, go to the “Background Color” section. Here, the default option is Black. You can stick to it if you are using an OLED iPhone with a pure black background. It will make your widget look like it’s floating on the screen. For this example, we’re going with the 90 percent option.

*后,转到“背景色”部分。 在此,默认选项是“黑色”。 如果您使用的是纯黑色背景的OLED iPhone,则可以坚持使用。 它将使您的小部件看起来像在屏幕上浮动。 对于此示例,我们将使用90%选项。

Select Background Color in Widgetsmith

You can scroll down and choose a border as well. We’re going to skip that for now.

您可以向下滚动并选择边框。 我们现在暂时跳过。

Hit the Back button and rename the widget so that it’s recognizable. We’re going with a simple “Red Date” title. Tap the “Save” button to save the name and then select “Save” once more to save the widget. The widget is now created.

点击“后退”按钮并重命名窗口小部件,使其可识别。 我们将使用一个简单的“红色日期”标题。 点击“保存”按钮以保存名称,然后再次选择“保存”以保存小部件。 小部件现已创建。

Rename Widget and Tap on Save

To add the widget, go to your iPhone’s home screen and press and hold on an empty part of the screen to enter Jiggle mode. Here, tap the “+” button in the top-left corner.

要添加小部件,请转到iPhone的主屏幕,然后按住屏幕的空白部分以进入Jiggle模式。 在这里,点击左上角的“ +”按钮。

Tap Plus from iPhone home screen

Select the Widgetsmith app from the list of widgets.

从小部件列表中选择Widgetsmith应用。

Select Widgetsmith

Now, scroll over to the Medium widget and tap the “Add Widget” button.

现在,滚动到“中”小部件,然后点击“添加小部件”按钮。

Tap Add Widget

As this was the most recently-created widget, you should see the Red Date widget here. If it’s not, you can tap on the widget for options.

由于这是*近创建的窗口小部件,因此您应该在此处看到“红色日期”窗口小部件。 如果不是,您可以点击小部件中的选项。

Tap the widget after adding it

Here, choose the “Widget” option.

在这里,选择“窗口小部件”选项。

Tap on Widget From Options

From the list, select the custom widget you just created.

从列表中,选择刚创建的自定义窗口小部件。

Select The Widget To Add To Widgetsmith

Now, swipe up from the Home bar or press the Home button to exit the home screen editing view.

现在,从主屏幕栏向上滑动或按主屏幕按钮以退出主屏幕编辑视图。

Widgetsmith Date Widget

And that’s it, you have just created and added an awesome-looking widget to your iPhone home screen. You can go back to the Widgetsmith app to create more widgets.

就是这样,您刚刚创建了一个很棒的小部件并将其添加到您的iPhone主屏幕。 您可以返回Widgetsmith应用程序以创建更多小部件。

使用Widgeridoo在iPhone上创建自定义小部件 (Create Custom Widgets on iPhone Using Widgeridoo)

While Watchsmith is great for creating simple custom widgets, you can do some really complex things with Widgeridoo. The best thing about Widgeridoo is how it lets you bring multiple data types into a single widget. You build a widget using blocks, like Lego.

尽管Watchsmith非常适合创建简单的自定义小部件,但是您可以使用Widgeridoo进行一些非常复杂的事情。 关于Widgeridoo的*好的事情是它如何使您将多个数据类型引入单个控件。 您使用诸如Lego之类的块来构建窗口小部件。

The free version of Widgeridoo lets you preview widgets. But to customize and add widgets to your home screen, you’ll have to upgrade to the $3.99 Pro plan (it’s a one-time purchase).

Widgeridoo的免费版本使您可以预览小部件。 但要自定义小部件并将其添加到主屏幕,您必须升级到3.99美元的Pro计划(一次性购买)。

For example, you can create a widget that shows you the date, your daily steps, upcoming appointments, and your iPhone’s battery life, all in a single widget. Plus, Widgeridoo has support for fetching JSON URLs, so you can display news feeds in widgets as well.

例如,您可以创建一个小部件,在一个小部件中显示日期,日常工作,即将到来的约会以及iPhone的电池寿命。 另外,Widgeridoo支持获取JSON URL,因此您也可以在小部件中显示新闻源。

After opening the Widgeridoo app, you’ll find a collection of pre-made widgets. As you’re starting out with the app, we recommend you customize the “Today” widget. Tap the “Today” widget to select it.

打开Widgeridoo应用程序后,您将找到一组预制的小部件。 在开始使用该应用程序时,我们建议您自定义“今日”窗口小部件。 点击“今天”窗口小部件以将其选中。

Select Today Template from Widgeridoo

You can preview the widget in the small, medium, or large size. Let’s stick with the medium size for now. Tap the “Edit” button to customize the widget.

您可以预览小,中或大尺寸的小部件。 让我们暂时保持中等大小。 点击“编辑”按钮以自定义窗口小部件。

Tap The Edit button from the Widgeridoo Widget

When you get into the editing view, you’ll notice that your widget has expanded to the Large size. You’ll find empty blocks with “+” icons. This here is the best, or the most frustrating part of Widgeridoo, depending on how you look at it.

进入编辑视图时,您会注意到小部件已扩展为大尺寸。 您会发现带有“ +”图标的空白块。 这是Widgeridoo*好的或*令人沮丧的部分,具体取决于您如何看待它。

This layout feature gives you a lot of freedom. You can add any data set to any of the rows or columns. You can keep on creating more rows/columns. But Widgeridoo automatically adapts the layout for different sizes, so you’ll have to tap the “Done” button to see the preview.

此布局功能为您提供了很大的自由度。 您可以将任何数据集添加到任何行或列。 您可以继续创建更多的行/列。 但是Widgeridoo会自动调整布局以适合不同的尺寸,因此您必须点击“完成”按钮以查看预览。

Tap the “+” button to see all the data sets.

点击“ +”按钮以查看所有数据集。

Tap The Plus Button To Add A Block

Choose a data type to add to the block. In this example, we’re going with “Distance Today.”

选择一种数据类型添加到块中。 在此示例中,我们将使用“今日距离”。

Select A Data Type For The Block

After you choose one, you’ll see the preview in the widget itself. You can press and hold a block to drag it somewhere else.

选择一个后,您将在小部件本身中看到预览。 您可以按住一个块将其拖动到其他位置。

Tap a block to see the customization options.

点击一个块以查看自定义选项。

Tap on a Block To Customize It

From here, you can change the alignment, font, the background color, and the foreground color.

在这里,您可以更改对齐方式,字体,背景颜色和前景色。

Customize The Block in Widgeridoo

Tap and hold a block for options. From here, you can delete the block or replace it with something else.

点住一个选项卡。 在这里,您可以删除块或将其替换为其他块。

Tap the Delete option to Delete a Block

Once you have customized the widget, tap the “Done” button.

自定义窗口小部件后,点击“完成”按钮。

Tap The Done button to Save the Widget

Now that your widget is ready, it’s time to add it to your home screen. From your iPhone’s home screen, tap and hold on an empty part to enter Jiggle mode. Next, tap the “+” button in the top-left corner of the screen.

现在您的小部件已准备就绪,是时候将其添加到主屏幕了。 在iPhone的主屏幕上,点击并按住空白处以进入“跳动”模式。 接下来,点击屏幕左上角的“ +”按钮。

Tap Plus from iPhone home screen

Scroll down and select the “Widgeridoo” app.

向下滚动并选择“ Widgeridoo”应用程序。

Select Widgeridoo from the List

Switch to the Medium size (or the size of the widget that you created) and tap the “Add Widget” button.

切换到中等大小(或您创建的小部件的大小),然后点击“添加小部件”按钮。

Tap Add Widget

Once the Widgeridoo widget is added to your home screen, tap on it.

将Widgeridoo小部件添加到主屏幕后,点击它。

Tap The Widgeridoo Widget After Adding It

Tap the “Choose” button from the Selected Widget section.

在“选定的小部件”部分中点击“选择”按钮。

Tap The Choose Button From Widget Options

Here, select the widget that you customized.

在这里,选择您自定义的小部件。

Select The Today Widget from Widgeridoo

You’ll now see the customized widget on your home screen. Swipe up on the Home bar or press the Home button to exit the editing mode.

现在,您将在主屏幕上看到自定义的小部件。 在主屏幕栏上向上滑动或按主屏幕按钮退出编辑模式。

Widgeridoo Today Widget

You can go back and customize one of the other widget templates.

您可以返回并自定义其他窗口小部件模板之一。

如何找到丢失的Apple Watch

Whether your Apple Watch is missing because you took it off somewhere in your house, or because it mysteriously went missing from your gym locker, there are several features baked in that will help you locate it (as well as mark it lost and even wipe it).

无论您是因为将Apple Watch从家里的某个地方取下而丢失了Apple Watch,还是因为它在健身房的储物柜中神秘地丢失了,Apple Watch都具有一些烘烤的功能,可以帮助您找到它(以及将其标记为丢失甚至擦掉) )。

查找Apple Watch所需的物品 (What You Need to Find Your Apple Watch)

In order to find your Apple Watch, you’ll need up-to-date software and a little bit of prep work. First and foremost, in order to even take advantage of the find-my-watch feature, you need to be running iOS 10 or higher and watchOS 3 or higher. (If you’ve never updated your watch before and want a run through, check out our guide to updating the Apple Watch here.)

为了找到Apple Watch,您需要*新的软件和少量准备工作。 首先,要使用“发现我的手表”功能,您需要运行iOS 10或更高版本以及watchOS 3或更高版本。 (如果您以前从未更新过手表并希望进行更新 ,请在此处查看我们的更新Apple Watch指南 。)

In addition, the kind of Find My Watch features you’ll have access to and the range at which they work is limited by which hardware version of the Apple Watch you have. All features work on all Apple Watches as long as they are within Bluetooth range of their companion iPhone, but only the Apple Watch Series 2 has built-in Wi-Fi and GPS which allow the features to work if the phone is far away.

此外,您可以使用的“查找我的手表”功能的种类以及它们的工作范围受到您拥有的Apple Watch硬件版本的限制。 只要所有Apple Watch都在其伴侣iPhone的蓝牙范围内,所有功能就可以使用,但是只有Apple Watch Series 2带有内置的Wi-Fi和GPS,如果手机离得很远,这些功能就可以使用。

Finally, and we completely understand what a bitter discovery this will be if you’re reading this article after you’ve already lost your watch and are in a panic, you need to enable the Find My Phone feature on the iPhone your Apple Watch is paired with in advance, or the features won’t be accessible. Don’t worry though, there’s no additional setup: any Apple Watch that is paired with an iPhone that has Find My Phone enabled automatically adds the Apple Watch to your list of devices.

*后,我们完全理解,如果您在丢失手表并感到恐慌之后阅读本文,这将是一个痛苦的发现,您需要在Apple Watch所在的iPhone上启用“查找我的电话”功能 预先配对,否则功能将无法使用。 不过,请放心,没有其他设置:与启用了“查找我的手机”的iPhone配对的任何Apple Watch都会自动将Apple Watch添加到您的设备列表中。

如何找到您的Apple Watch (How to Find Your Apple Watch)

You’re running up-to-date iOS and watchOS, you’ve enabled Find My Phone (automatically dragging your Apple Watch along for the ride), and now your watch is missing. Let’s first look at how to simply locate your watch when it is nearby and then move onto more drastic measures like remote locking and wiping.

您正在运行*新的iOS和watchOS,启用了“查找我的手机”(自动拖动Apple Watch进行骑行),现在手表丢失了。 首先让我们看一下如何在手表附近时简单定位手表,然后再进行更严厉的措施,例如远程锁定和擦拭。

To access both the basic and advanced features simply open the Watch app on your paired device and select the missing watch, like so:

要访问基本功能和高级功能,只需在配对设备上打开“手表”应用,然后选择缺少的手表即可,如下所示:

%title插图%num

Within the watch menu, click on the “i” additional information icon:

在监视菜单内,单击“ i”附加信息图标:

%title插图%num

Select “Find My Apple Watch” to begin the search process.

选择“查找我的Apple Watch”开始搜索过程。

%title插图%num

That selection will take you to the “Find iPhone” app on your phone, with the app focused in on your watch (as an aside you can always use the Find iPhone app from the get go or even log into icloud.com to use the web-based locator, but using the Watch app jumps you right to the relevant menu).

该选择将带您进入手机上的“查找iPhone”应用,并将该应用重点放在手表上( 顺便说一句 ,您始终可以从一开始就使用“查找iPhone”应用,甚至登录icloud.com即可使用基于网络的定位器,但使用“观看”应用可将您直接跳转到相关菜单)。

%title插图%num

In the location menu, you’ll see your Apple Watch (if your phone can connect to the watch or your Apple Watch Series 2 watch can connect to the internet) with a rough location. Sometimes this is enough: if it looks like your watch is sitting in your car parked down the street there’s a good chance that, well, your watch is sitting in your car parked down the street. If not, you have other options.

在位置菜单中,您会看到Apple Watch(如果您的手机可以连接到手表或者Apple Watch Series 2手表可以连接到互联网)的位置很粗。 有时这就足够了:如果您的手表正坐在停在街上的车里,那么很有可能手表正坐在停在街上的车里。 如果没有,您还有其他选择。

使用语音警报定位手机 (Locate Your Phone with an Audio Alert)

If you need more than a reminder than your watch is in your gym back in the back of your car, however, it’s time to tape into the more advanced options, a seen across the bottom of the screenshot above: “Play Sound”, “Lost Mode” and “Erase Watch”.

但是,如果您需要的不仅仅是手表,还不如将手表放在汽车后座的健身房中,那么现在是时候贴上更高级的选项了,在上方屏幕截图的底部可以看到:“播放声音”,“丢失模式”和“删除观看”。

The “Play Sound” function is great for those times that you’ve merely misplaced your watch, and functions exactly the same as the function on the Apple Watch that allows you to find your missing iPhone: you tap the button and your watch plays a loud chime. It will continue to play the loud chime with the message below displayed on the watch, until you locate it and tap “Dismiss”.

“播放声音”功能非常适合那些只将手表放错位置的情况, 其功能与Apple Watch上的功能完全相同,可让您找到丢失的iPhone :点击按钮,手表会播放大声的铃声。 它将继续播放大声提示音,并在手表上显示以下消息,直到找到并点击“关闭”。

%title插图%num

If your watch is merely lost in the couch cushions, this should be more than enough to alert you.

如果您的手表只是丢在沙发垫上,这足以警告您。

将您的手表标记为“丢失” (Mark Your Watch as “Lost”)

When squeezing a chime out of your watch doesn’t narrow down your search pattern any, it might be time to consider your watch genuinely lost. At this point it’s time to tap on “Lost Mode” and mark your watch as lost. Tap it and then select “Turn On Lost Mode”.

当从手表中挤出钟声并不能缩小搜索范围时,可能是时候考虑您的手表真正丢失了。 现在是时候点击“丢失模式”并将您的手表标记为丢失。 点按它,然后选择“开启丢失模式”。

%title插图%num

First, you’ll be prompted to enter a contact phone number to be displayed on the missing Apple Watch.

首先,系统将提示您输入要在丢失的Apple Watch上显示的联系人电话号码。

%title插图%num

Next, you’ll be prompted to use the canned message provided (or edit it with your own message). This message, along with the supplied phone number, will appear on your watch.

接下来,系统将提示您使用提供的罐头消息(或使用您自己的消息进行编辑)。 该消息以及提供的电话号码将出现在手表上。

%title插图%num

When you click “Done” your selections will be saved, and the iCloud network will attempt to deliver them to your missing watch. Back on the main screen, there’s one final setting you can toggle: email notifications. You can do so by tapping “Notify When Found”—notification emails about the state of your Apple Watch will be delivered to the primary email associated with your Apple account.

当您单击“完成”时,您的选择将被保存,并且iCloud网络将尝试将其交付给您丢失的手表。 返回主屏幕,您可以切换一个*终设置:电子邮件通知。 您可以通过点击“找到时通知”来进行操作-有关Apple Watch状态的通知电子邮件将发送到与您的Apple帐户关联的主要电子邮件中。

%title插图%num

After these changes the watch, if it can be reached either via Bluetooth or Wi-Fi, will be marked as lost as if anyone picks it up it will display your message like so:

完成这些更改后,如果可以通过蓝牙或Wi-Fi到达手表,则将其标记为丢失,就像有人捡起它一样,它将显示您的消息,如下所示:

%title插图%num

The watch can only be unlocked with your current or last used passcode. At any time you can modify the settings of Lost Mode or disable it by tapping on the “Lost Mode” icon again. You’ll be presented with the following menu:

只能使用您当前或上次使用的密码解锁手表。 您随时可以修改“丢失模式”的设置,也可以通过再次点击“丢失模式”图标将其禁用。 您将看到以下菜单:

%title插图%num

Here you can change the number, the message, whether or not you get email updates, as well as turning off Lost Mode altogether. It’s important to note that like the find functionality itself, these changes, save for turning off the email updates, will not take effect if the watch is out of communication range.

在这里,您可以更改号码,消息,是否收到电子邮件更新,以及完全关闭“丢失模式”。 请务必注意,与查找功能本身一样,如果手表不在通讯范围之内,这些更改(关闭电子邮件更新除外)将不会生效。

核选项:擦拭手表 (The Nuclear Option: Wipe Your Watch)

Let’s say you can see your Apple Watch on the satellite map, you know it’s still active, but there is some extenuating circumstance that prevents you from retrieving it. Maybe you’re no longer in that part of the country, or maybe the watch is in a dangerous part of town and neither you nor the police are interested in taking on the risk to retrieve it. Whatever the reason, you may wish to remotely wipe it to remove all personal data from it.

假设您可以在卫星地图上看到Apple Watch,并且知道它仍然处于活动状态,但是有一些令人费解的情况使您无法取回它。 也许您不再在该国那个地区,或者手表不在城市的危险地带,您和警察都对冒着取回它的风险不感兴趣。 无论出于何种原因,您都可能希望对其进行远程擦除,以从中删除所有个人数据。

To do so tap on the trash can icon labeled “Erase Watch” in the find-my-watch interface. You’ll be prompted to confirm you wish to erase your watch.

为此,请在“查找我的手表”界面中点击标有“删除手表”的垃圾桶图标。 系统会提示您确认要删除手表。

%title插图%num

Upon selecting “Erase Apple Watch” you’ll be prompted once more to confirm the process by entering your password. As soon as the watch is able to connect to the internet, it will be remotely wiped back to a factory state.

选择“删除Apple Watch”后,系统会再次提示您输入密码以确认该过程。 一旦手表能够连接到互联网,它就会被远程擦除回到出厂状态。

如果找不到手表会发生什么 (What Happens If You Can’t Find Your Watch)

Ideally, you’ll find your watch. Much less than ideally, you’ll never see it again. Even if you never see so much as a blip on the map nor an email alert, you can rest easy knowing two things. First: even if you can’t wipe your watch, the data on your watch is still encrypted, and if you use a passcode the watch no one who finds the watch can access it (nor can they pair it with their iPhone to pull the data off).

理想情况下,您会找到手表。 比理想情况少得多,您将再也看不到它。 即使您从未看到过地图上的短消息或电子邮件警报,也可以轻松了解两件事。 首先:即使您无法擦拭手表,手表上的数据仍会被加密,并且如果您使用密码,则手表的任何人都无法访问它(他们也无法将其与iPhone配对以拉动手表)。数据关闭)。

Second, every Apple Watch is activation locked to the phone it is originally paired with (unless expressly liberated by the owner of said watch and phone). While it’s no fun losing your watch, you can at least rest easy knowing that even if some jerk at your gym lifted it, it’s of absolutely no value to them. Stolen Apple Watches can never be paired with another iPhone.

其次,每台Apple Watch均被激活锁定到与其*初配对的手机上(除非该手表和手机的所有者明确释放)。 虽然丢掉手表没什么好玩的,但您至少可以放心地知道,即使您的体育馆里有些混蛋举起了手表,对他们来说也毫无价值。 被盗的Apple Watch*不能与其他iPhone配对。

As a final note, if you’re reading this article our of curiosity (because your watch is still firmly attached to your wrist), do take a moment to set the passcode for your watch and enable Find My iPhone, so should that fateful day come where either the couch or the deft hands of a pickpocket steal your watch, you’ll have some recourse.

*后一点,如果您正在阅读本文,请耐心等待(因为您的手表仍牢固地贴在手腕上),请花一点时间设置手表的密码并启用“查找我的iPhone”,那该死的日子应该如此来到沙发或扒手狡猾的手偷了手表的地方,您将有一些追索权。

iOS开发之构建简单开发环境

物料准备
Mac 一部
iPhone 一部
Xcode – 苹果公司开发的IDE
加入苹果开发者计划的Apple Id
个人-$99(约688元/年)(调试证书*多只能有两个)
公司-$99(约688元/年)需要提供邓白氏编码,用于企业认证,可以进行团队开发管理
企业-$299,需要提供邓白氏编码,程序不能上架到AppStore(用于企业内部办公软件等)(调试证书*多有五个)
构建步骤
1. 安装Xocde
*方便的方法是从Mac中的App Store搜索Xcode直接下载(只能下载*新版本)
从苹果开发者网站下载(有多个版本可供选择)
2. 创建项目
1). 打开Xcode, 点击创建新的Xcode项目

%title插图%num
2). 选择创建Single View App

%title插图%num
3). 为项目制定名称和语言等配置, Next创建项目

%title插图%num
3. 登陆Apple Id
1). 打开Xcode, 选择屏幕左上角Xcode->Preferences

2). 选择Account点击左下角的+按钮登陆Apple ID

3). 登陆你的Apple ID

4). 选择 项目文件-> General – > Team-> 选择你属于你的Apple ID(此时将载入相关的配置信息, 需要等待一会)

%title插图%num
4. 布置简单的页面
1). 选中故事板, 并从右下角的对象库中拖入一个Label放在控制器中间, 可以双击Label变换为你想要的文字

%title插图%num
5. 运行
1). 点击左上角的设备列表选择你想要运行此程序的设备

%title插图%num
2). Command + R运行此项目

%title插图%num
6. 关于automatically manage signing
苹果推出AMS的的初衷是意识到了开发者在复杂的签名机制上会浪费大量的时间, 但是实话说, AMS还是可能会出现各种问题, 所以了解苹果的签名机制还是非常有必要的, 否则当使用AMS的时候遇到问题就只能望洋兴叹了…
关于Certificate、Provisioning Profile、App ID的介绍及其之间的关系

7. 真机调试
若是`AMS`配置完成依旧无法真机调试, 则可能是自动配置证书的时候出了问题, 此时需要手动配置签名和证书.
1
1. 登陆开发者官网, 选择证书, 标识符 & 文件.

%title插图%num
2. 添加证书

3. 选择证书
– 开发证书(Development):*多1个(20170425日只能生成一个了)
– 发布证书(Production):*多3个(网传)
1
2

4. 准备创建CSR文件(这里以Production 的 App Store And AD Hoc为例)

①创建CSR文件01(打开钥匙串->证书助理->从证书颁发机构请求证书)

②创建CSR文件02(填写电子邮件地址,常用名称,这两项都可以随便填,注意要把CSR文件存储到磁盘)

③创建CSR文件(为CSR文件取名,建议*好取一个和你项目名称相关的名字)

④选择刚刚创建的CSR文件

⑤创建证书完毕,下载证书

Extension:CSR是Cerificate Signing Request的英文缩写,即证书请求文件,也就是证书申请者在申请数字证书时由CSP(加密服务提供者)在生成私钥的同时也生成证书请求文件,证书申请者只要把CSR文件提交给证书颁发机构后,证书颁发机构使用其根证书私钥签名就生成了证书公钥文件,也就是颁发给用户的证书。

5. 配置APP ID
①. 配置项目的App Id(即Bundle Id)

②. 给AppID取名(建议使用项目名称,便于区分)

③. 设置BundleID(建议设置精确的BundleID。如果选择通配符BundleID,比如推送功能是无法使用的)

④. 注册BundleID

⑤. 确认无误,注册BundleID

⑥. 注册BundleID完毕

Tips:
Bundle ID 是唯一标识符,不能重复,必须保证是唯一的(如果某些程序在真机调试的时候报 Bundle ID 的错误,更改一下 BundleID 一般可以解决)
1
2
6. 配置Device
①. 添加测试设备

②. 获取设备的UDID(iTunes或者Xcode获取)

③. 注册设备

Tips
这里的设备在开发者付费后1年内*多只能添加100台,如果没有在这里配置Device的UDID,Xcode在登录过开发者账号的情况下, 也可以自动修复
1
2
7. 配置包含以上三者信息的描述文件
①. 添加描述文件

②. 选择创建发布到AppStore的类型

③. 选择对应的App Id,如果之前App Id是按照项目名取的,这里就很好找。所以说取名一定要有套路,一定要规范!

④. 选择对应的证书(之前是可以默认全部勾选的,但是现在不可以了,所以只能选择刚才创建的证书,看名字不好辨别,只能根据证书到期日期判断,比如今天是2017年3月19日,所以推断出,2018年3月18日的那个证书是刚刚创建的)

⑤. 如果配置开发证书,这里还要多一步,选择设备,直接全部选择就好了
⑥. 给描述文件取名(一定要规范!一定要规范!!一定要规范!!!)

⑦. 下载描述文件

8. 配置完成, 安装证书和描述文件
直接双击即可安装(建议先安装证书, 再安装描述文件)

9. 进行真机调试
用lightning数据线连接Mac和iPhone, 确认在左上角的设备列表的*顶端出现了设备, 就是连接成功了, 选择此真机设备.
Command + R运行, 如果报错, 则依照下图查看是否有系统提供的fix按钮, 有的话, 点击fix自动修复.

%title插图%num

其它
关于iOS 11和Xcode 9搭配实现的新功能 – 无线真机调试
iOS & MacOS开发, 优秀的框架管理集成工具:CocoaPods
自动化UI测试工具(猴子测试) – https://github.com/jonathanpenn/ui-auto-monkey

向iOS越狱彻底说再见!

640?wx_fmt=png

作者 | 仲培艺

出品 | CSDN

Cydia 线上商店是针对完成越狱的 iOS 设备的一种破解软件,在越狱过程中被装入到系统,为 iOS 设备提供第三方 App 的服务平台,让使用者能直接下载安装避开苹果 App Store 上架规范的第三方 App 内容,由 Jay Freeman 领导,Okori Group 以及 UCSB 大学合作开发。

12 月 14 日,Cydia 之父 Jay Freeman(Saurik)于 Reddit 发帖称,考虑在今年年底全面关闭 Cydia Store,并表示将于本周发布一条更为详细的正式声明,就眼下的漏洞问题及 Cydia 的未来发展动态做出进一步回应。

在 iPhone 早期阶段,Cydia 曾是足以与苹果 App Store 相抗衡的分销渠道,专门为越狱智能手机打造。十多年后的今天,Saurik 却表示在 PayPal 数字令牌授权相关的错误影响了“*少数用户”后,他将关闭 Cydia 移动商店的应用内购买功能。

「一气之下」的越狱商城

有坊间传言称,Saurik 曾经也是给 iPhone 写程序的软件工程师,但因为手里的一个视频拍摄软件未能获准上架,怒而奋起上“梁山”,开起了 Cydia 软件商店,专门收留不被苹果通过的软件。

事实上,早在 2008 年 3 月,Cydia 就推出了*个版本,甚至比苹果商城出现得还要早。2007 年,iOS 刚推出不久便因应用功能缺失和系统不完善的原因屡遭诟病,各类 iPhone 越狱教程也因此炒得火热。

这种通过第三方强行破解系统实现诸多原生系统所没有的功能和个性化设置的操作手段日益兴起,同时出现了一大批包括 iPhone Dev Team、ChronicDev-Team 等在内的与苹果“斗智斗勇”的越狱团队。Cydia 应用商店也在各路浪潮中应运而生,渐成越狱玩家“必备”。

起初,Cydia 只是 iPhone OS 1.1 上 Installer.app 的一个开源选择,但在 2008 年 7 月带有 App Store 的 iPhone OS 2.0 推出后,它一跃成为*流行的软件包管理器。

2010 年 9 月,Saurik 的公司宣布收购 Rock Your Phone,即此前仅次于 Cydia 的包管理器软件 Rock.app 的开发商。自此,Cydia Store 成为越狱设备*大的第三方应用提供商。

2018 年 7月,Electra 团队推出了 Cydia 的*后一个版本:Cydia 1.1.30-2。

屋漏偏逢连夜雨,Cydia 商店沉疴难返

2017 年 11 月,Cydia 上的两大软件合作来源 ZodTTD&MacCiti 和 ModMyi 相继宣布关闭,Cydia 三大源仅余 BigBoss 一支,生存环境似乎也随之陷入窘境, 一时间引发诸多类似 “再见,iOS 越狱”的讨论。

虽然随着美国国会图书馆和美国版权局的介入,iPhone 越狱得以走出灰色地带实现合法化,但苹果近年来对于越狱的防控却从未松懈,大有愈加严密之势,更于今年 4 月 19 日于官网发布声明,指出未经授权改装 iOS 可能导致诸多包括安全漏洞在内的问题,“违反 iOS *终用户软件许可协议”,因此苹果有权拒*继续为其提供服务。

640?wx_fmt=png

与此同时,iOS 自身也在不断优化,官方 App Store 亦日趋完善,随着操作系统的不断升级,功能缺失的情况几乎不复出现。再加之其系统的闭源性特征,苹果逐步完备的闭环生态系统也在一点点提升侵入难度,随着 iOS 生态系统变得愈加健壮安全,用户对于越狱的需求度及越狱“热情”也受到了*大的影响,越狱社区用户越来越少,我们渐渐不再那么经常地接触到“iOS 越狱”的相关信息,Cydia 存在的意义无疑也受到了一定程度上的撼动。

除却这些外部因素外,Cydia 自身在经营模式等方面也遇到了颇多棘手的问题。Saurik 在帖子中坦言,线上商店在此前很长一段时间内几乎都无营收, *近更是发现了可能会对用户设备带来风险的漏洞(这里他特别强调了并非数据泄露问题),再加上内购服务上线后接踵而至的关乎其收入的误解,让他一度想要在今年年底全面关闭 Cydia Store,并且考虑在本周收到漏洞报告后,将这一计划再次提前。他还特别指出,即使真的关闭,对其经济状况的改善也不会太大,他每月仍需要为存储库托管支付一笔不小的费用,而一直以来 Saurik 都在依靠他的新工作为这个苟延残喘的项目持续“输血”,焦头烂额之余也再无意继续维护下去。如此一来,腹背受敌的 Cydia 真可谓风雨飘摇。

争论不休:关闭的到底是什么?

有趣的是,这次评论区的矛盾并不仅局限于“一个时代是否终结”,Twitter 搜索热门更是多见“辟谣帖”、“澄清帖”,言语间直指“Cydia 即将关闭”一说有失偏颇,“Saurik 很快发现就算把 Cydia 商店关停也缓解不了什么经济压力,所以*后决定还是只屏蔽购买机制就可以了”,强调关闭的仅仅是应用内购买功能。

640?wx_fmt=png

640?wx_fmt=png

此外,还有另一种反馈指出,Cydia Store 指代的仅是后端支付系统,“允许用户从 Cydia 的默认存储库购买付费越狱调整,例如BigBoss,MacCiti和ModMyi(后两者在前一段时间被永久存档)。它与 Cydia Installer 不同,Cydia Installer 是用户每天与之交互的Cydia应用程序”。

如果用户是在 iOS 11 上进行越狱,那么由于 Saurik 从一开始就没有在 iOS 11 上开启 Cydia 应用内购买功能,也不会注意到此次关闭的使用差异,除非使用的是 iOS 11 之前的旧越狱。这就是为什么许多付费越狱调整将被托管在第三方存储库中。

640?wx_fmt=png

因此,Cydia Store 的关闭对该应用程序本身不会造成影响,“用户可以继续使用Cydia来安装/卸载/管理现有的越狱调整、主题,用户仍然可以浏览当前的存储库”。至于过去已购买的付费越狱调整,也给出了对应解释:

Saurik 表达了他希望保持对以前购买的越狱调整的访问权。也就是说,如果用户之前从 BigBoss 购买了付费调整,那么现在仍然可以下载安装它,虽然 Cydia 商店已不再运行。

如果用户之前没有在 BigBoss 存储库上购买付费越狱调整,那么除非开发人员将其软件包移至第三方存储库(如 Packix、Chariz 或 Dynastic Repo),否则将无法购买。

末日前夜 or 危言耸听

今年 2 月开发者们还在欢庆 iOS 11 越狱终于又可以带 Cydia 玩了,十个月后就开始唱衰越狱时代,究竟是末日前的回光返照,还是评论家的又一场不负责任的嘴炮?

实际上,随着“越狱”这个词从不再新鲜再到逐渐从普通用户视野中淡去,我们真切地感受到了越狱的“退出流行”,但越狱时代终结这样的评语是否也为时尚早呢?对此,专门研究 iOS 越狱漏洞的技术大神,Electra 成员 Pwn20wnd 连发多条推文,更直言“越狱未死,扯淡者闲”,表示“iOS 越狱将与 iOS 系统同寿”。

640?wx_fmt=png

640?wx_fmt=png

640?wx_fmt=png

更有其观点的支持者评论表示,“越狱并没有死。他们的创造者仍在维护现代越狱工具,越狱开发人员仍在对主流第三方存储库进行新的越狱调整”。驳斥方则依旧认为,“虽然不想承认,但那个属于越狱的时代确乎结束了”。

*后,附上更多此次事件相关热评截取,听听开发者们想要“献给” Cydia 之父的话:

coolstory0001:感谢 Saurik 长久以来的付出,在过去五年间,越狱都占据了我很大一部分生活,也持续影响着今天的我。在初中的*后一年,我给我的 iPod 4 越狱了,并一直保持这个习惯。如今我已步入大学,当年的*次 iPod 越狱勾起了我对科技的兴趣,因此,我在大学期间选择攻读网络系统专业。感谢 Saurik 愿意搭建并年复一年地维系这个平台,这改变了很多人地一生。

007jeremy:我的越狱经历始于 iPhone 3G 时期,发展到 iOS 7 的时候,这阵风渐渐就淡了,现在我在大学读书,为成为一名 IT 教师而准备着,感谢 Saurik,他给了我很大的激励。尽管如今的越狱已经不像当初那么强大,但我会永远记住属于它的黄金时代。五年甚至十年前,越狱甚至是你购入一台 iPhone 的全部理由……

eni9889:这大概是个非常艰难的决定,感谢 Saurik 这么多年来所付出的一切。如果不是 Cydia 及其相关工具,我们当中的很多人可能都不会走上开发者这条路。

rubbercake:我知道这条评论*有可能被淹没,但我还是要说,我们当中总有一些年轻人拥有着惊人的天赋甚至是过人的成熟(兼具成熟这一点的仅占 8.4%),而 Saurik 无疑是这群人中的佼佼者。感谢你的不曾放弃,感谢你打造出如此完美的用户群,感谢你足以点燃群众热情的专业水平,感谢为越狱付出的一切。无论你需要什么,尽管开口。

ios越狱改设备id_为什么要越狱iOS设备

ios越狱改设备id

Recently it was announced it’s legal to hack your phone/devices. Today we look at why you would want to Jailbreak your iOS device. This will be a general overview of some of the capabilities and options available after a jailbreak.

*近,有人宣布入侵您的手机/设备是合法的。 今天,我们来看看为什么您想越狱iOS设备。 这将是越狱后可用的某些功能和选项的概述。

In a previous Article, Mysticgeek wrote about how to jailbreak your iOS device the easy way. If you are not yet on iOS 4.0.2 this method should still work. However if you have updated, you will need to wait for the new Jailbreakme.com to be completed. There are other ways to jailbreak your iOS device however, which we will discuss later. The apps, widgets and themes discussed maybe found using the Cydia shortcut that was added to your apps.

如果您尚未使用iOS 4.0.2,则此方法仍然可以使用。 但是,如果您已更新,则需要等待新的Jailbreakme.com完成。 但是,还有其他方法可以让您的iOS设备越狱,我们将在后面讨论。 可以使用添加到您的应用程序中的Cydia快捷方式找到讨论的应用程序,小部件和主题。

Keep in mind that if you Jailbreak you Apple Device it may not be covered under warranty. However, you can easily set it back, so there seems to be some confusion on whether it will void the warranty or not if you set it back.

请记住,如果您越狱Apple Device,则它可能不在保修范围内。 但是,您可以轻松地重新设置它,因此,如果重新设置它是否会使保修无效,似乎有些困惑。

锁屏 (Lockscreen)

One reason that many people want to Jailbreak is to add information to their lockscreen. By default the iOS lockscreen shows you time and date, battery, life alarm status, Wi-Fi Status, carrier network status and notifications of events, SMS, or other popups from apps.

许多人想要越狱的原因之一是在其锁屏中添加信息。 默认情况下,iOS锁定屏幕显示时间和日期,电池,生活警报状态,Wi-Fi状态,运营商网络状态以及事件通知,SMS或应用程序中的其他弹出窗口。

The lockscreen widget we looked at in this test was LockInfo. LockInfo is free for a 14 day trial period and then costs 4.99. LockInfo has options for plugins and widgets in itself. The plugin we tested was the HTC Plugin which aims to emulate the HTC Sense UI lock screen with its clock and local weather, as well as collapsible categories of pop ups such as calendar, mail, notifications (from other programs such as AIM or Facebook), missed calls, voicemail, and SMS. You can also add other plugins such as twitter and a mini web browser.

我们在此测试中查看的锁屏小部件是LockInfo。 LockInfo在14天的试用期内免费,然后收费4.99。 LockInfo本身具有用于插件和小部件的选项。 我们测试的插件是HTC插件,旨在模拟HTC Sense UI锁定屏幕及其时钟和本地天气,以及可折叠的弹出窗口类别,例如日历,邮件,通知(来自其他程序,如AIM或Facebook) ,未接来电,语音信箱和短信。 您还可以添加其他插件,例如twitter和小型Web浏览器。

%title插图%num

自订主题 (Custom Themes)

With iOS 4 you can now add a wallpaper to you home screens… ya… pretty exciting. The problem is that all of your icons and bars and text still look the same, and for some people, that’s boring. With Cydia you can install a theme app like WinterBoard.

有了iOS 4,您现在可以在主屏幕上添加墙纸了。 问题在于您所有的图标,条形图和文本仍然看起来相同,而且对于某些人而言,这很无聊。 使用Cydia,您可以安装主题应用程序,例如WinterBoard。

%title插图%num
%title插图%num

WinterBoard has taken over where SummerBoard was with older iPhones and the iPod Touch, it will support any themes created with SummerBoard as well as it’s own.. With WinterBoard you can select the theme element that you would like to change based on what you have downloaded from Cydia. There are many premade themes for the whole OS or just specific apps such as SMS.

WinterBoard已取代了SummerBoard与旧版iPhone和iPod Touch一起使用的位置,它将支持使用SummerBoard创建的所有主题以及它自己的主题。通过WinterBoard,您可以根据下载的内容选择要更改的主题元素。来自Cydia。 整个操作系统或特定的应用程序(例如SMS)都有许多预制主题。

%title插图%num

自定义短信声音 (Custom SMS Sounds)

Another reason to jailbreak would be the option to use different and custom SMS sounds. By default you have six options plus the option of not having any sound. When you Jailbreak you now have the option to access /System/Library/Audio/UISounds which is where the audio files are kept. With Cydia you can download different SMS sounds and ringtones, to customize your iOS device. Most of the SMS sounds you download will be used with a theme application such as WinterBoard and will replace one of the default SMS sounds.

越狱的另一个原因是可以选择使用不同的自定义SMS声音。 默认情况下,您有六个选项,外加没有声音的选项。 越狱后,您现在可以选择访问/ System / Library / Audio / UISounds ,这是保存音频文件的位置。 使用Cydia,您可以下载不同的SMS声音和铃声,以自定义iOS设备。 您下载的大多数SMS声音将与主题应用程序(例如WinterBoard)一起使用,并将替换默认的SMS声音之一。

%title插图%num

苹果公司未提供的应用程序 (Apps Not Blessed by Apple)

A big feature that is added to a iOS device that has been jailbroken is apps do not need to be approved by Apple before appearing in Cydia for download. In this test run we discovered that there was a Google Voice app, GV Mobile. This app works with SMS and with calling, but calls by ringing the phone number that you set with in it for calls. There are more games, more text editors and more navigation apps available to you thought Cydia.

添加到已越狱的iOS设备的一个重要功能是,在出现在Cydia中进行下载之前,无需获得Apple批准的应用。 在此测试运行中,我们发现有一个Google语音应用GV Mobile。 此应用程序可与SMS和呼叫配合使用,但通过拨打您在其中设置的电话号码来拨打电话即可进行呼叫。 Cydia认为您可以使用更多的游戏,更多的文本编辑器和更多的导航应用程序。

%title插图%num
%title插图%num

There are more applications, tweaks and nifty things that can be done with OpenSSH and Cydia that we’ll cover in the future such as qtwitter, a Twitter app that will let you update your status from any window at anytime. You can add action menus and set other short cuts to access your apps faster.

将来我们将介绍OpenSSH和Cydia可以完成的更多应用程序,调整和精美的事情,例如qtwitter,这是一个Twitter应用程序,可让您随时从任何窗口更新状态。 您可以添加操作菜单并设置其他快捷方式以更快地访问您的应用程序。

%title插图%num

因为你能 (Because You Can)

Lets face it, as geeks we love to make things our own. We’re dedicated to allowing you to own what ever geek piece of software or device that we can get our hands on. With the DMCA exemption that just passed some of those on the fence will now want to come to the side of freedom. But for those who don’t care about the rules and just want to hack every electronic toy you have, there are always new and easier ways to do this. We have only skimmed the surface of a few of the options that are now there.

让我们面对现实吧,作为*客,我们喜欢将事物变成我们自己的东西。 我们致力于让您拥有我们可以动手使用的*客软件或设备。 刚刚通过了DMCA豁免之后,现在有些人希望摆脱自由。 但是对于那些不关心规则而只想破解您拥有的每个电子玩具的人来说,总有新的和更简单的方法可以做到这一点。 我们只是略述了现在存在的一些选项的表面。

%title插图%num

Here we took a look at some of the basic cool things you can do once you jailbreak your iPhone, iPod Touch, or iPad. In the future we’ll be taking a look at some of the more geeky tips and tricks you can do, so look for those soon.

在这里,我们了解了越狱iPhone,iPod Touch或iPad后可以执行的一些基本操作。 将来,我们将研究您可以做的一些怪异的提示和技巧,因此请尽快查找。

What is your take? Do you jailbreak your Apple devices right away, or are you on the fence about doing it. Leave a comment and let us know!

你拿什么 您是立即越狱Apple设备,还是在做此事情时处于戒备状态。 发表评论,让我们知道!