bitrise-io / codesigndoc

Your friendly iOS Code Signing Doctor
MIT License
319 stars 43 forks source link

** ARCHIVE FAILED ** Error: failed to run xcodebuild command, error: exit status 65 #165

Closed BaluNaik closed 3 months ago

BaluNaik commented 1 year ago

_Please include the full (Terminal) output of codesigndoc -

 bash -l -c "$(curl -sfL https://raw.githubusercontent.com/bitrise-io/codesigndoc/master/_scripts/install_wrap-xcode.sh)"
 => Creating a temporary directory for codesigndoc ...
 => Downloading version: 3.0.0
 => Downloading codesigndoc from (https://github.com/bitrise-io/codesigndoc/releases/download/3.0.0/codesigndoc-Darwin-x86_64) to (/var/folders/f0/tn7n_spj04107gtz_b6d262c0000gq/T/codesigndocXXXXXX.7yn1946s/codesigndoc) ...
#################################################################################################################################################################### 100.0%
 => Making it executable ...
 => codesigndoc version: 3.0.0
 => Running codesigndoc scan ...

Scan the directory for project files
You can specify the Xcode project/workspace file to scan with the --file flag.
Failed: failed to search for files in (/Users/balunaik), error: open /Users/balunaik/.Trash: operation not permitted

Provide the project file manually
Please drag-and-drop your Xcode Project (.xcodeproj) or Workspace (.xcworkspace) file, 
the one you usually open in Xcode, then hit Enter.
(Note: if you have a Workspace file you should most likely use that) : /Users/balunaik/Documents/react-mobile-app/Namshi/ios/Namshi.xcworkspace 

šŸ”¦  Scanning Schemes ...
$ xcodebuild "-workspace" "/Users/balunaik/Documents/react-mobile-app/Namshi/ios/Namshi.xcworkspace" "-list"

Select the Scheme you usually use in Xcode
Please select from the list:
[1] : abseil
[2] : Adjust
[3] : Appboy-iOS-SDK
[4] : Appboy-iOS-SDK-Appboy
[5] : Appboy-iOS-SDK-AppboyUI.ContentCards
[6] : Appboy-iOS-SDK-AppboyUI.InAppMessage
[7] : Appboy-iOS-SDK-AppboyUI.NewsFeed
[8] : boost-for-react-native
[9] : BoringSSL-GRPC
[10] : BVLinearGradient
[11] : CocoaAsyncSocket
[12] : DoubleConversion
[13] : FBLazyVector
[14] : FBReactNativeSpec
[15] : Firebase
[16] : FirebaseABTesting
[17] : FirebaseAnalytics
[18] : FirebaseAuth
[19] : FirebaseCore
[20] : FirebaseCoreDiagnostics
[21] : FirebaseCrashlytics
[22] : FirebaseFirestore
[23] : FirebaseInstallations
[24] : FirebaseInstanceID
[25] : FirebaseMessaging
[26] : FirebaseRemoteConfig
[27] : Flipper
[28] : Flipper-DoubleConversion
[29] : Flipper-Folly
[30] : Flipper-Glog
[31] : Flipper-PeerTalk
[32] : Flipper-RSocket
[33] : FlipperKit
[34] : glog
[35] : GoogleAnalytics
[36] : GoogleAppMeasurement
[37] : GoogleDataTransport
[38] : GoogleMaps
[39] : GoogleSymbolUtilities
[40] : GoogleTagManager
[41] : GoogleTagManager-TagManagerResources
[42] : GoogleUtilities
[43] : GoogleUtilitiesLegacy
[44] : gRPC-C++
[45] : gRPC-C++-gRPCCertificates-Cpp
[46] : gRPC-Core
[47] : GTMSessionFetcher
[48] : Leanplum-iOS-SDK
[49] : leveldb-library
[50] : libevent
[51] : libwebp
[52] : Namshi
[53] : nanopb
[54] : OpenSSL-Universal
[55] : Pods-Namshi
[56] : PromisesObjC
[57] : RCT-Folly
[58] : RCTRequired
[59] : RCTTypeSafety
[60] : React
[61] : React-callinvoker
[62] : React-Core
[63] : React-Core-AccessibilityResources
[64] : React-CoreModules
[65] : React-cxxreact
[66] : React-jsi
[67] : React-jsiexecutor
[68] : React-jsinspector
[69] : react-native-adjust
[70] : react-native-geolocation
[71] : react-native-get-random-values
[72] : react-native-nat-sdk
[73] : react-native-pdf
[74] : react-native-photo-view
[75] : react-native-progress-bar-android
[76] : react-native-progress-view
[77] : react-native-restart
[78] : react-native-spinkit
[79] : react-native-video
[80] : react-native-webview
[81] : React-perflogger
[82] : React-RCTActionSheet
[83] : React-RCTAnimation
[84] : React-RCTBlob
[85] : React-RCTImage
[86] : React-RCTLinking
[87] : React-RCTNetwork
[88] : React-RCTSettings
[89] : React-RCTText
[90] : React-RCTVibration
[91] : React-runtimeexecutor
[92] : ReactCommon
[93] : ReactNativeART
[94] : ReactNativeNavigation
[95] : richpushnotification
[96] : rn-fetch-blob
[97] : RNCAsyncStorage
[98] : RNCookie
[99] : RNCPicker
[100] : RNDateTimePicker
[101] : RNDefaultPreference
[102] : RNDeviceInfo
[103] : RNFastImage
[104] : RNFBApp
[105] : RNFBIid
[106] : RNFBRemoteConfig
[107] : RNI18n
[108] : RNLocalize
[109] : RNShare
[110] : RNStoreReview
[111] : RNSVG
[112] : SDWebImage
[113] : SDWebImageWebPCoder
[114] : Sentry
[115] : SentryReactNative
[116] : SwiftLint
[117] : Yoga
[118] : YogaKit
(type in the option's number, then hit Enter) [1] : 52
Setting xcodebuild -destination flag to: generic/platform=iOS
Xcode (xcodebuild) version: Xcode 14.2 (Build version 14C18)

šŸ”¦  Running an Xcode Archive, to get all the required code signing settings...
$ xcodebuild "-workspace" "/Users/balunaik/Documents/react-mobile-app/Namshi/ios/Namshi.xcworkspace" "-scheme" "Namshi" "-destination" "generic/platform=iOS" "clean" "archive" "-archivePath" "/var/folders/f0/tn7n_spj04107gtz_b6d262c0000gq/T/__codesigndoc__823799142/Namshi.xcarchive"
.......................

Last lines of the build log:
/Users/balunaik/Documents/react-mobile-app/Namshi/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'Firebase' from project 'Pods')
/Users/balunaik/Documents/react-mobile-app/Namshi/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'RNSVG' from project 'Pods')
/Users/balunaik/Documents/react-mobile-app/Namshi/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'react-native-geolocation' from project 'Pods')
/Users/balunaik/Documents/react-mobile-app/Namshi/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'React-RCTBlob' from project 'Pods')
/Users/balunaik/Documents/react-mobile-app/Namshi/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'react-native-pdf' from project 'Pods')
/Users/balunaik/Documents/react-mobile-app/Namshi/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'FirebaseMessaging' from project 'Pods')
/Users/balunaik/Documents/react-mobile-app/Namshi/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'DoubleConversion' from project 'Pods')
/Users/balunaik/Documents/react-mobile-app/Namshi/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.2.99. (in target 'React-jsinspector' from project 'Pods')
** ARCHIVE FAILED **

The following build commands failed:
    CompileSwift normal arm64 /Users/balunaik/Documents/react-mobile-app/Namshi/ios/richpushnotification/NotificationService.swift (in target 'richpushnotification' from project 'Namshi')
    SwiftCompile normal arm64 Compiling\ NotificationService.swift /Users/balunaik/Documents/react-mobile-app/Namshi/ios/richpushnotification/NotificationService.swift (in target 'richpushnotification' from project 'Namshi')
(2 failures)
Please check the build log to see what caused the error.

Xcode Archive failed.
Open the project: /Users/balunaik/Documents/react-mobile-app/Namshi/ios/Namshi.xcworkspace
and make sure that you can build an Archive, with the scheme: Namshi

šŸ’”  Saving xcodebuild output into file: /Users/balunaik/codesigndoc_exports/xcodebuild-output.log

------------------------------
First of all please make sure that you can Archive your app from Xcode.
codesigndoc only works if you can archive your app from Xcode.
If you can, and you get a valid .ipa/.app file if you export from Xcode,
please create an issue on GitHub at: https://github.com/bitrise-io/codesigndoc/issues
with as many details & logs as you can share!
------------------------------

Error: failed to run xcodebuild command, error: exit status 65

in Terminal.app you can save the output into a file with Command+s_ Terminal Saved Output.txt

In addition to this, if codesigndoc generated an Xcode output log, please attach that too. xcodebuild-output.log