ios iPhone XS 没有 UDID
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/52473290/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
iPhone XS doesn't have UDID
提问by Milap Kundalia
I want to add an iPhone XS UDID in the Apple developer portal but I am unable to find the UDID in iTunes and without adding the UDID I am unable to run my app on the iPhone XS. I tried adding the ECID and SEID but it didn't work.
我想在 Apple 开发人员门户中添加 iPhone XS UDID,但我无法在 iTunes 中找到该 UDID,如果不添加 UDID,我将无法在 iPhone XS 上运行我的应用程序。我尝试添加 ECID 和 SEID,但没有用。
I couldn't find anything about the disappearance of the UDID on Google either.
我也找不到有关 UDID 在 Google 上消失的任何信息。
Can anyone help me figure out how to register the iPhone XS in the Apple developer portal?
谁能帮我弄清楚如何在 Apple 开发者门户中注册 iPhone XS?
回答by Harsh Alkutkar
For the iPhone XS/XS Max and possibly other iPhones which do not show UUID in Itunes:
- Open Xcode
- Window -> Devices & Simulators -> Select your iPhone -> Use the "identifier" as shown below:
对于 iPhone XS/XS Max 和其他可能在 Itunes 中不显示 UUID 的 iPhone: - 打开 Xcode - 窗口 -> 设备和模拟器 -> 选择你的 iPhone -> 使用“标识符”,如下所示:
回答by Paulw11
- Go to "?->About This Mac".
- Click on "System Report" and select "USB".
- Find your phone and the "Serial Number" field is what you are after.
- Copy this value and paste it into the developer portal when you register a new device; you will need to insert a - after the 8th digit.
- 转到“?->关于本机”。
- 单击“系统报告”并选择“USB”。
- 找到您的手机,“序列号”字段就是您想要的。
- 当您注册新设备时,复制此值并将其粘贴到开发人员门户中;您需要在第 8 位数字后插入 -。
You can also get the "identifier" from the Xcode "devices" window or have Xcode update the portal directly.
您还可以从 Xcode 的“设备”窗口获取“标识符”,或者让 Xcode 直接更新门户。
回答by mikebld
You can compile the UDID from the ECID that is shown by iTunes with the following formula (for XS and XS Max)
您可以使用以下公式从 iTunes 显示的 ECID 编译 UDID(对于 XS 和 XS Max)
0000CHIP-00ECID
0000CHIP-00ECID
The CHIP version in the XS/XS Max case is 8020 (source for it)
XS/XS Max案例中的CHIP版本为8020(来源)
So if you want to compute the UDID for an XS/XS Max (and I believe the XR has the same chip), then you'll need to replace the ECID with your own in:
因此,如果您想计算 XS/XS Max 的 UDID(我相信 XR 具有相同的芯片),那么您需要将 ECID 替换为您自己的:
00008020-00ECID
00008020-00ECID
To find the ECID, connect the iPhone to iTunes and click the serial number, the ECID will show up.
要查找 ECID,请将 iPhone 连接到 iTunes 并单击序列号,ECID 将显示出来。
Edit: For the XR the formula is: 00008020-000ECID, because the ECID has one less character
编辑:对于 XR,公式为:00008020-000ECID,因为 ECID 少了一个字符
回答by SeriousSam
The best way to get the UDID for the XS is(if you are a dev that is)
获取 XS UDID 的最佳方法是(如果您是开发人员)
- Connect your device to you mac
- Open Xcode
- Open Window->Devices and Simulators
- Select your device
- You will see identifier in a similar screen like the one below
- 将您的设备连接到您的 mac
- 打开 Xcode
- 打开窗口->设备和模拟器
- 选择您的设备
- 您将在类似的屏幕中看到标识符,如下所示
回答by lal
Use terminal "system_profiler" to find the UDID for attached devices
使用终端“system_profiler”查找连接设备的 UDID
If you're comfortable using Terminal, you can paste this command in to Terminal or save it as a script or alias.
如果您习惯使用终端,则可以将此命令粘贴到终端中或将其另存为script 或 alias。
system_profiler SPUSBDataType -detailLevel mini | \
grep -e iPhone -e Serial | \
sed -En 'N;s/iPhone/&/p'
Paste that text into Terminal and press enter to run system_profiler for the USB devices, and then filter for only the iPhone's UDID from the pretty-long output. Again, be sure to add the necessary hyphen after the first eight digits for iPhone XS and XS Max devices.
将该文本粘贴到终端中,然后按 Enter 键为 USB 设备运行 system_profiler,然后从相当长的输出中仅过滤 iPhone 的 UDID。同样,请务必在 iPhone XS 和 XS Max 设备的前八位数字后添加必要的连字符。
output on terminal:
终端输出:
$ system_profiler SPUSBDataType -detailLevel mini | \
grep -e iPhone -e Serial | \
sed -En 'N;s/iPhone/&/p'
Output:
2018-10-25 12:57:06.527 system_profiler[23461:6234239] SPUSBDevice:
IOCreatePlugInInterfaceForService failed 0xe0003a3e
iPhone:
Serial Number: 3aeac....4145
Ignore following failures
2018-10-25 12:57:06.527 system_profiler[23461:65234239] SPUSBDevice: IOCreatePlugInInterfaceForService failed 0xe0003a3e
忽略以下故障
2018-10-25 12:57:06.527 system_profiler[23461:65234239] SPUSBDevice: IOCreatePlugInInterfaceForService failed 0xe0003a3e
Look for Serial Number: 3aeac........4145
寻找 Serial Number: 3aeac........4145
Alias:
别名:
# find UDID
alias fudid="system_profiler SPUSBDataType -detailLevel mini | grep -e iPhone -e Serial | sed -En 'N;s/iPhone/&/p'"
From: https://deciphertools.com/blog/2014_11_19_how_to_find_your_iphone_udid/
来自:https: //deciphertools.com/blog/2014_11_19_how_to_find_your_iphone_udid/
回答by theAmitom
回答by Durga Sriram
Just combining all the different answers form the internet:-
只需结合互联网上的所有不同答案:-
In MacOS:-
在 MacOS 中:-
For iPhones which do not show UDID in Itunes, There are two approaches for those who are using MacOS:-
对于在 Itunes 中不显示 UDID 的 iPhone,使用 MacOS 的用户有两种方法:-
If you are a developer you can get the UDID by both the approaches. But if you need UDID number of your client's iPhone or someone else's who is sitting in onsite or someone else's who does not have Xcode in their Mac, for them 2nd approach is the best.
如果您是开发人员,则可以通过两种方法获取 UDID。但是,如果您需要客户 iPhone 的 UDID 号码,或者其他人坐在现场,或者其他人的 Mac 中没有 Xcode,那么对他们来说,第二种方法是最好的。
Connect iPhone using USB in Mac. Open Xcode --> Window --> Devices & Simulators --> Select your iPhone -> Copy the "identifier". That is the iPhones UDID number.
For ex:- It should like this "98gfhgd6-7f1a06b4f60156f1949fbytrd205c1f0.
Connect iPhone using USB in Mac. Click Apple icon on the left top corner "?" --> "About This Mac" --> "System Report" -- Select "USB" on the left panel --> Select "iPhone" on the right top window --> Copy and paste the Serial Number value. You then need to add a – after the 8th digit.
For Ex: if you got a serial number as "98gfhgd67f1a06b4f60156f1949fbytrd205c1f0", after adding - it should like this: "98gfhgd6-7f1a06b4f60156f1949fbytrd205c1f0".
在 Mac 中使用 USB 连接 iPhone。打开 Xcode --> 窗口 --> 设备和模拟器 --> 选择你的 iPhone -> 复制“标识符”。那是 iPhone 的 UDID 号码。
例如:- 它应该是这样的“98gfhgd6-7f1a06b4f60156f1949fbytrd205c1f0。
在 Mac 中使用 USB 连接 iPhone。点击左上角的苹果图标“?” -->“关于本机”-->“系统报告”--在左侧面板上选择“USB”-->在右上方窗口选择“iPhone”-->复制并粘贴序列号值。然后您需要在第 8 位数字后添加 –。
例如:如果您的序列号为“98gfhgd67f1a06b4f60156f1949fbytrd205c1f0”,添加后 - 它应该是这样的:“98gfhgd6-7f1a06b4f60156f1949fbytrd205c1f”
In Windows:-
在 Windows 中:-
Note: If you're using the Windows PC, then you can use third party tools like iFunBox,etc for Windows, to get the UDID for iPhone XS and iPhone XS Max. It is a much easier method. iFunBox for Mac doesn't seem to provide the UDID.
注意:如果您使用的是 Windows PC,那么您可以使用第三方工具如 iFunBox 等 Windows 来获取 iPhone XS 和 iPhone XS Max 的 UDID。这是一种简单得多的方法。iFunBox for Mac 似乎没有提供 UDID。
回答by Vanger
Also you can get UDID of your iPhone XS using https://get.udid.io
您也可以使用https://get.udid.io获取 iPhone XS 的 UDID
回答by Mehul Parmar
Considering you are using macOS catalina, and there is no iTunes any more, you may do the following:
考虑到您使用的是 macOS catalina,并且不再有 iTunes,您可以执行以下操作:
回答by Joey Shum
Must be update to XCode10 and click Window -> Devices & Simulators -> Select your iPhone -> Use the "identifier"
必须更新到 XCode10 并单击窗口 -> 设备和模拟器 -> 选择您的 iPhone -> 使用“标识符”