![](/img/trans.png)
[英]Provisioning profile "iOS Team Provisioning Profile: doesn't include the currently selected device" Flutter - MacOS
[英]xcodebuild: Provisioning profile doesn't include device
Xcode10.3
或vscode with flutter
Xcode10.3
運行都可以。xcodebuild command
運行失敗: Provisioning profile
不包括當前selected device
“[MyPhone]”。 (在目標“跑步者”中) run on device are fine
使用 Xcode run on device are fine
沒問題。在終端中使用xcodebuild
命令失敗:
xcodebuild -configuration Debug -target Runner -arch armv6 -sdk iphoneos
Build settings from command line:
ARCHS = armv6
SDKROOT = iphoneos12.4
2019-08-10 08:52:54.739 xcodebuild[23765:932559] DTDeviceKit: deviceType from
1daca728d755****0[MyPhoneUUID] was NULL
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: Provisioning profile "iOS Team Provisioning Profile: com.xxxx.xxxx"
doesn't include the currently selected device "[MyPhone]". (in target 'Runner')
Build system information
warning: None of the architectures in ARCHS (armv6) are valid for this target.
Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least
one value from VALID_ARCHS (arm64, arm64e, armv7, armv7s). (in target 'Runner')
Build system information
warning: ignoring duplicated output file: '[Project_Path]/build/ios/Debug-iphoneos/
Runner.app/Frameworks/Flutter.framework' in shell script build phase '[CP] Embed
Pods Frameworks'. This warning represents an extremely serious project misconfiguration
and will likely cause some shell scripts in your project to be skipped entirely,
leading to other build failures or missing files in the build directory. This will
be a hard error in the future. (in target 'Runner')
有沒有辦法找出在設備上調試時 Xcode 運行的命令類型。
使用 Xcode run on simulator iPhone 7(iOS12.4) are fine
。 但是在終端中使用xcodebuild
命令失敗:
xcodebuild -configuration Debug -target Runner -sdk iphonesimulator
Build settings from command line:
SDKROOT = iphonesimulator12.4
note: Using new build system
note: Planning build
note: Using build description from disk
Build system information
error: Multiple commands produce '[Project_Path]/build/ios/Debug-iphonesimulator/
Runner.app/Frameworks/Flutter.framework':
1) Target 'Runner' has copy command from
'[Project_Path]/ios/Flutter/Flutter.framework' to
'[Project_Path]/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework'
2) That command depends on command in Target 'Runner': script
phase “[CP] Embed Pods Frameworks”
Build system information
warning: ignoring duplicated output file: '[Project_Path]/build/ios/
Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework' in shell script build
phase '[CP] Embed Pods Frameworks'. This warning represents an extremely serious
project misconfiguration and will likely cause some shell scripts in your project to
be skipped entirely, leading to other build failures or missing files in the build
directory. This will be a hard error in the future. (in target 'Runner')
-arch armV7
-arch armv6
在設備上應該是-arch armV7
。
xcodebuild -configuration Debug -target Runner -arch armv7 -sdk iphoneos
使用 Xcode 運行。 使用上面的命令運行:
Build settings from command line:
ARCHS = armv7
SDKROOT = iphoneos12.4
2019-08-10 13:09:30.105 xcodebuild[3131:1467212] DTDeviceKit: deviceType from
1daca728d755****0[MyPhoneUUID] was NULL
2019-08-10 13:09:30.147 xcodebuild[3131:1467213] DTDeviceKit: deviceType from
1daca728d755****0[MyPhoneUUID] was NULL
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
error: Provisioning profile "iOS Team Provisioning Profile: com.xxxx.xxx" doesn't
include the currently selected device "[MyPhoneName]". (in target 'Runner')
此問題是由於 iPhone 在使用xcodebuild
時被locked
造成的。 確保設備已plugging
並unlocked
並使用xcodebuild
運行正常。
DTDeviceKit:來自 [PhoneUUID] 的 deviceType 為 NULL。
全部清潔:
iPhone Developer certificate
。iPhone Developer certificate
。~/Library/MobileDevice/Provisioning Profiles
所有配置~/Library/MobileDevice/Provisioning Profiles
。結果:
manual sign config: .p12 + profile
) 運行項目。armv7
到arm64
)xcodebuild -configuration Debug -target Runner -arch arm64 -sdk iphoneos
Build settings from command line:
ARCHS = arm64
SDKROOT = iphoneos12.4
note: Using new build system
note: Planning build
note: Using build description from disk
Build system information
error: Provisioning profile "iOS Team Provisioning Profile: com.xxxx.xxx" doesn't
include the currently selected device "[MyPhoneName]". (in target 'Runner')
Build system information
warning: ignoring duplicated output file: '[Project_Path]/build/ios/Debug-iphoneos/
Runner.app/Frameworks/Flutter.framework' in shell script build phase '[CP] Embed
Pods Frameworks'. This warning represents an extremely serious project misconfiguration
and will likely cause some shell scripts in your project to be skipped entirely,
leading to other build failures or missing files in the build directory. This will
be a hard error in the future. (in target 'Runner')
Automatic manage signing
以查看它是否與僅Team
配置文件問題有關,仍然失敗。vscode
運行flutter
並在Xcode
運行它都可以。鑒於這個問題的年齡,我很好奇這個問題是否仍然相關。 雖然我無法復制這種行為,但我建議在此 Stack Overflow 帖子中嘗試解決方案,看看它是否適用於您的設置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.