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

codesigndoc fails with "Flutter/Flutter.h" . Xcode build is a success repeatadely on Apple M1 #150

Open
meetdestiny opened this issue Jan 31, 2022 · 0 comments

Comments

@meetdestiny
Copy link

Please include the full (Terminal) output of codesigndoc -
in Terminal.app you can save the output into a file with Command+s

Description

codesigndoc fails with "Flutter/Flutter.h" . Xcode build is a success repeatadely on Apple M1

Console Output

(base) akhilesh@akhileshs-mbp-2 ios % 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: 2.4.1
=> Downloading codesigndoc from (https://github.com/bitrise-io/codesigndoc/releases/download/2.4.1/codesigndoc-Darwin-x86_64) to (/var/folders/cw/y93px0pj23x2y8nyh40y0ps00000gn/T/codesigndocXXXXXX.uQhwdSW5/codesigndoc) ...
################################################################################################################################################################################## 100.0%################################################################################################################################################################################## 100.0%
=> Making it executable ...
=> codesigndoc version: 2.4.1
=> Running codesigndoc scan ...

Scan the directory for project files
You can specify the Xcode project/workscape file to scan with the --file flag.
Found one project file: Runner.xcworkspace.

🔦 Scanning Schemes ...
$ xcodebuild "-workspace" "/Users/akhilesh/repos/frontend/ios/Runner.xcworkspace" "-list"

Select the Scheme you usually use in Xcode
Please select from the list:
[1] : AppAuth
[2] : FBAEMKit
[3] : FBSDKCoreKit
[4] : FBSDKCoreKit_Basics
[5] : FBSDKLoginKit
[6] : Firebase
[7] : firebase_auth
[8] : firebase_core
[9] : FirebaseAuth
[10] : FirebaseCore
[11] : FirebaseCoreDiagnostics
[12] : Flutter
[13] : flutter_facebook_auth
[14] : fluttertoast
[15] : google_sign_in
[16] : GoogleDataTransport
[17] : GoogleSignIn
[18] : GoogleUtilities
[19] : GTMAppAuth
[20] : GTMSessionFetcher
[21] : nanopb
[22] : path_provider_ios
[23] : Pods-Runner
[24] : PromisesObjC
[25] : Runner
[26] : Toast
[27] : webview_flutter_wkwebview
(type in the option's number, then hit Enter) [1] : 25

Xcode (xcodebuild) version: Xcode 13.2.1 (Build version 13C100)

🔦 Running an Xcode Archive, to get all the required code signing settings...
$ xcodebuild "-workspace" "/Users/akhilesh/repos/frontend/ios/Runner.xcworkspace" "-scheme" "Runner" "clean" "archive" "-archivePath" "/var/folders/cw/y93px0pj23x2y8nyh40y0ps00000gn/T/__codesigndoc__079132145/Runner.xcarchive"
....

Last lines of the build log:
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.

** ARCHIVE FAILED **

The following build commands failed:
CompileC /Users/akhilesh/Library/Developer/Xcode/DerivedData/Runner-flfbldwwovfcqvetvlsmrydlkkot/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-maccatalyst/path_provider_ios.build/Objects-normal/x86_64/FLTPathProviderPlugin.o /Users/akhilesh/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.7/ios/Classes/FLTPathProviderPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'path_provider_ios' from project 'Pods')
CompileC /Users/akhilesh/Library/Developer/Xcode/DerivedData/Runner-flfbldwwovfcqvetvlsmrydlkkot/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-maccatalyst/path_provider_ios.build/Objects-normal/arm64/FLTPathProviderPlugin.o /Users/akhilesh/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_ios-2.0.7/ios/Classes/FLTPathProviderPlugin.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'path_provider_ios' from project 'Pods')
CompileC /Users/akhilesh/Library/Developer/Xcode/DerivedData/Runner-flfbldwwovfcqvetvlsmrydlkkot/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-maccatalyst/webview_flutter_wkwebview.build/Objects-normal/x86_64/JavaScriptChannelHandler.o /Users/akhilesh/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/JavaScriptChannelHandler.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'webview_flutter_wkwebview' from project 'Pods')
CompileC /Users/akhilesh/Library/Developer/Xcode/DerivedData/Runner-flfbldwwovfcqvetvlsmrydlkkot/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-maccatalyst/webview_flutter_wkwebview.build/Objects-normal/x86_64/FlutterWebView.o /Users/akhilesh/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/FlutterWebView.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'webview_flutter_wkwebview' from project 'Pods')
CompileC /Users/akhilesh/Library/Developer/Xcode/DerivedData/Runner-flfbldwwovfcqvetvlsmrydlkkot/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-maccatalyst/webview_flutter_wkwebview.build/Objects-normal/x86_64/FLTWebViewFlutterPlugin.o /Users/akhilesh/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/FLTWebViewFlutterPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'webview_flutter_wkwebview' from project 'Pods')
CompileC /Users/akhilesh/Library/Developer/Xcode/DerivedData/Runner-flfbldwwovfcqvetvlsmrydlkkot/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Pods.build/Release-maccatalyst/webview_flutter_wkwebview.build/Objects-normal/x86_64/FLTWKProgressionDelegate.o /Users/akhilesh/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/FLTWKProgressionDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'webview_flutter_wkwebview' from project 'Pods')
(6 failures)
Please check the build log to see what caused the error.

Xcode Archive failed.
Open the project: /Users/akhilesh/repos/frontend/ios/Runner.xcworkspace
and make sure that you can build an Archive, with the scheme: Runner

💡 Saving xcodebuild output into file: /Users/akhilesh/repos/frontend/ios/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

xcodebuild-output.log

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

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

No branches or pull requests

1 participant