sindresorhus / LaunchAtLogin-Legacy

Add “Launch at Login” functionality to your macOS app in seconds
MIT License
1.55k stars 122 forks source link

Building app with fastlane fails with LaunchAtLogin.entitlements error #73

Closed ospfranco closed 2 years ago

ospfranco commented 2 years ago

Hi! I'm using LaunchAtLogin in my app and I'm trying to build it using fastlane. I have basically set up a basic build action, but it fails with a LaunchAtLogin.entitlements path error:

[21:46:07]: $ set -o pipefail && xcodebuild -workspace ./macos/sol.xcworkspace -scheme macOS -destination 'generic/platform=macOS' -archivePath /Users/osp/Library/Developer/Xcode/Archives/2022-05-05/sol\ 2022-05-05\ 21.46.07.xcarchive archive | tee /Users/osp/Library/Logs/gym/sol-macOS.log | xcpretty
[21:46:07]: ▸ objc[16713]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1e3cfdeb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1047dc4f8). One of the two will be used. Which one is undefined.
[21:46:07]: ▸ objc[16713]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1e3cfdf00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1047dc548). One of the two will be used. Which one is undefined.
[21:46:07]: ▸ objc[16713]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1e3cfdf50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1047dc598). One of the two will be used. Which one is undefined.
[21:46:07]: ▸ objc[16713]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1e3cfdfa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1047dc5e8). One of the two will be used. Which one is undefined.
[21:46:07]: ▸ objc[16713]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1e3cfdff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1047dc638). One of the two will be used. Which one is undefined.
[21:46:07]: ▸ objc[16713]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1e3cfe040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1047dc688). One of the two will be used. Which one is undefined.
[21:46:07]: ▸ 2022-05-05 21:46:07.753 xcodebuild[16713:190096] 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
[21:46:07]: ▸ 2022-05-05 21:46:07.754 xcodebuild[16713:190096] 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
[21:46:10]: ▸ Copying /Users/osp/Library/Developer/Xcode/DerivedData/sol-fgshdhettiwowogbdjmzkrqsdwfg/Build/Intermediates.noindex/ArchiveIntermediates/macOS/IntermediateBuildFilesPath/UninstalledProducts/macosx/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLoginHelper.zip
[21:46:10]: ▸ Copying /Users/osp/Library/Developer/Xcode/DerivedData/sol-fgshdhettiwowogbdjmzkrqsdwfg/Build/Intermediates.noindex/ArchiveIntermediates/macOS/IntermediateBuildFilesPath/UninstalledProducts/macosx/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/copy-helper-swiftpm.sh
[21:46:10]: ▸ Copying /Users/osp/Library/Developer/Xcode/DerivedData/sol-fgshdhettiwowogbdjmzkrqsdwfg/Build/Intermediates.noindex/ArchiveIntermediates/macOS/IntermediateBuildFilesPath/UninstalledProducts/macosx/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLoginHelper-with-runtime.zip
[21:46:10]: ▸ Copying /Users/osp/Library/Developer/Xcode/DerivedData/sol-fgshdhettiwowogbdjmzkrqsdwfg/Build/Intermediates.noindex/ArchiveIntermediates/macOS/IntermediateBuildFilesPath/UninstalledProducts/macosx/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin.entitlements
[21:46:10]: ▸ ❌  error: '/Users/osp/Library/Developer/Xcode/DerivedData/sol-fgshdhettiwowogbdjmzkrqsdwfg/Build/Intermediates.noindex/ArchiveIntermediates/macOS/IntermediateBuildFilesPath/UninstalledProducts/macosx/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin_LaunchAtLogin.bundle/Contents/Resources/LaunchAtLogin.entitlements' is longer than filepath buffer size (1025). (in target 'LaunchAtLogin_LaunchAtLogin' from project 'LaunchAtLogin')
[21:46:10]: ▸ Processing empty-LaunchAtLogin_LaunchAtLogin.plist
[21:47:01]: ▸ 2022-05-05 21:47:01.279 xcodebuild[16713:190099]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-20038/DTDeviceKitBase/DTDKRemoteDeviceData.m:373
[21:47:01]: ▸ Details:  (null) deviceType from 00008006-000671090E62802E was NULL when -platform called.
[21:47:01]: ▸ Object:   <DTDKMobileDeviceToken: 0x138375380>
[21:47:01]: ▸ Method:   -platform
[21:47:01]: ▸ Thread:   <NSThread: 0x120707a00>{number = 3, name = (null)}
[21:47:01]: ▸ Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.

Do you have any idea what could be the issue? I would much appreciate any help. Just in case you want to check it out, here is the repo of the app: https://github.com/ospfranco/sol/tree/fastlane

ospfranco commented 2 years ago

Today I tried Fastlane again and the app compiles just fine... maybe it was some cached directory. For anyone facing this error, try clearing build, derived data, and restarting your machine.