Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signing for IOS not working / MacOS 12.6 with SDK 12.3 and Xcode 13.3.1 on an M1 Mac #436

Open
paines opened this issue Oct 15, 2022 · 3 comments
Labels

Comments

@paines
Copy link
Contributor

paines commented Oct 15, 2022

So I am trying to build DemoHelloWorld for IOS and it fails at building loader:
=> building loader..

xcodebuild -configuration Release -allowProvisioningUpdates
objc[45031]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1fff9f650) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105bbc598). One of the two will be used. Which one is undefined.
objc[45031]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fff9f6a0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105bbc5e8). One of the two will be used. Which one is undefined.
objc[45031]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fff9f6f0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105bbc638). One of the two will be used. Which one is undefined.
objc[45031]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1fff9f740) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105bbc688). One of the two will be used. Which one is undefined.
objc[45031]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1fff9f790) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105bbc6d8). One of the two will be used. Which one is undefined.
objc[45031]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1fff9f7e0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x105bbc728). One of the two will be used. Which one is undefined.
2022-10-15 21:54:27.757 xcodebuild[45031:495454] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-10-15 21:54:27.757 xcodebuild[45031:495454] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release -allowProvisioningUpdates
User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES
note: Using new build system
note: Planning
Analyze workspace
Create build description
Build description signature: 8330a99f53eca859ec80187592ef78d2
Build description path: /Users/myname/.lambdanative/tmp.T2cVBF/build/XCBuildData/8330a99f53eca859ec80187592ef78d2-desc.xcbuild
note: Build preparation complete
warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning
error: No account for team "My name". Add a new account in the Accounts preference pane or verify that your accounts have valid credentials. (in target 'DemoHelloWorld' from project 'DemoHelloWorld')
error: No profiles for 'com.yourdomainhere.demohelloworld' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.yourdomainhere.demohelloworld'. (in target 'DemoHelloWorld' from project 'DemoHelloWorld')
** BUILD FAILED **
ERROR: failed with exit code 65
BUILD FAILED - configure with verbose option for more information
make: *** [all] Error 1

Under Xcode->Preferences->Accounts I have an Apple ID with: My name (Personal Team).
In Profile under SYS_IOSRELCERT and SYS_IOSDEVCERT I tried various combinations of My name with Personal Team or leaving it blank, but nothing helps.

Does this only work if you have an Apple Developer Membership? Mine ran out tho...

@paines paines changed the title Signing for IOS not working Signing for IOS not working / MacOS 12.6 with SDK 12.3 and Xcode 13.3.1 on an M1 Mac Oct 15, 2022
@mgorges
Copy link
Contributor

mgorges commented Oct 16, 2022

I think SYS_IOSRELCERT in PROFILE#L8 is still used to extract the SYS_IOSTEAMID, specifically the (YYYYYYYYYY) piece. And if that is not found as an Apple ID in your Xcode account you get the message you show above 'Add a new account in the Accounts preference pane or verify that your accounts have valid credentials.' In contrast, SYS_IOSDEVCERT in PROFILE#L9 may no longer be used.

You should be able to log into Xcode with your Apple ID, even if your membership expired, and do on-device testing. However, if you can still do ad-hoc distribution for internal testing, for which you might need a provisioning profile, is not quite clear to me from looking at https://developer.apple.com/support/compare-memberships/ - sorry.

@paines
Copy link
Contributor Author

paines commented Oct 18, 2022

No worries. Thanks for your hard work and support by the way.

As I understand we only need xcode to deploy or do the signing for IOS, right? I saw there is a project on gihubt called io-deploy. I will test tonite how it works and if it can be integrated into the lambdanative project somehow to get rid of xcode, as with every new release it breakes more and more, as it seems.

@mgorges
Copy link
Contributor

mgorges commented Oct 18, 2022

I believe you need Xcode to compile too as this is the only way you can get the arm compiler and libraries needed for iOS? The requirements of https://github.com/ios-control/ios-deploy include: a) macOS, b) You need to have a valid iOS Development certificate installed, and c) Xcode, so this likely won't help you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants