-
Notifications
You must be signed in to change notification settings - Fork 122
本地配置好 aspectd 并运行 aspectd-example 后 AOP 成功,但其他 Flutter 项目运行会有问题; #91
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
Comments
@kangwang1988 Help~ |
问题1: 问题2: |
好的 我周末再试试 |
This was referenced Mar 9, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
我本地下载了 AspectD 的仓库,给 Flutter 设置 git apply --3way ~/Home/CodeHome/aspectd/0001-aspectd.patch 以后,删除 flutter_tools.stamp 重新 flutter doctor -v 并且在 AspectD 执行 flutter packages get,AspectD 内部的 Example 可以运行,AOP 也生效;
但是这个时候我直接创建新 Flutter 项目,无法运行,会报错;
提示找不到 aspectd_impl/.packages,提示我检查 aspectd_impl/pubspec.yaml
然后我去这个新的 Flutter 项目的同级目录下创建了aspectd_impl,并执行了 AspectD 的 Readme 中步骤123
不再提示上面的报错了,但是运行程序会卡住;
请问本地配置好 AspectD 以后(AspectD 中的 Example 可以运行并且 AOP 有效)
问题1:
别的Flutter项目想运行,也必须创建相对应的 aspectd_impl 吗
问题2:
别的Flutter项目创建对应的 aspectd_impl 后,无法运行并且没有报错,但编译的时候会卡在 Running Xcode build,这是我哪里的配置有问题吗
问题2的具体信息:
➜ ~ /Users/yuechen/Desktop/flutter_app
➜ flutter_app ls
README.md build flutter_02.log ios pubspec.lock test
android flutter_01.log flutter_app.iml lib pubspec.yaml
➜ flutter_app flutter run --debug --verbose
[ +172 ms] executing: [/Users/yuechen/FlutterSDK/flutter/] git -c log.showSignature=false log -n 1
--pretty=format:%H
[ +68 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +3 ms] 307cdf5d72c1cb56348e2c750360ac634a3c4d35
[ +1 ms] executing: [/Users/yuechen/FlutterSDK/flutter/] git tag --contains HEAD
[ +220 ms] Exit code 0 from: git tag --contains HEAD
[ +2 ms] executing: [/Users/yuechen/FlutterSDK/flutter/] git describe --match ..* --first-parent --long --tags
[ +31 ms] Exit code 0 from: git describe --match ..* --first-parent --long --tags
[ ] 1.20.4-1-g307cdf5d72
[ +12 ms] executing: [/Users/yuechen/FlutterSDK/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +19 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/flutter-1.20-candidate.7
[ ] executing: [/Users/yuechen/FlutterSDK/flutter/] git ls-remote --get-url origin
[ +17 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +25 ms] executing: [/Users/yuechen/FlutterSDK/flutter/] git rev-parse --abbrev-ref HEAD
[ +18 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] Ver_1.20.4
[ +44 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +12 ms] executing: /Users/yuechen/Library/Android/sdk/platform-tools/adb devices -l
[ +13 ms] executing: /usr/bin/xcode-select --print-path
[ +13 ms] Exit code 0 from: /usr/bin/xcode-select --print-path
[ ] /Applications/Xcode.app/Contents/Developer
[ +1 ms] executing: /usr/bin/xcodebuild -version
[ +108 ms] Exit code 0 from: /usr/bin/xcodebuild -version
[ +1 ms] Xcode 12.3
Build version 12C33
[ +3 ms] executing: xcrun --find xcdevice
[ +15 ms] Exit code 0 from: xcrun --find xcdevice
[ ] /Applications/Xcode.app/Contents/Developer/usr/bin/xcdevice
[ ] executing: xcrun xcdevice list --timeout 2
[ +5 ms] /usr/bin/xcrun simctl list --json devices
[ ] executing: /usr/bin/xcrun simctl list --json devices
[ +70 ms] List of devices attached
[ +67 ms] {
"devices" : {
"com.apple.CoreSimulator.SimRuntime.tvOS-14-3" : [
[+2378 ms] [
{
"simulator" : false,
"operatingSystemVersion" : "14.3 (18C66)",
"interface" : "usb",
"available" : true,
"platform" : "com.apple.platform.iphoneos",
"modelCode" : "iPhone11,6",
"identifier" : "00008020-001D24240CA3002E",
"architecture" : "arm64e",
"modelUTI" : "com.apple.iphone-xs-max-4",
"modelName" : "iPhone XS Max",
"name" : "我的iPMax"
},
{
"simulator" : true,
"operatingSystemVersion" : "14.3 (18C61)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone13,3",
"identifier" : "6E2B9229-B878-4D88-AB45-6DF2E501679A",
"architecture" : "x86_64",
"modelUTI" : "com.apple.iphone-12-pro-1",
"modelName" : "iPhone 12 Pro",
"name" : "iPhone 12 Pro"
},
{
"simulator" : true,
"operatingSystemVersion" : "14.3 (18C61)",
"available" : true,
"platform" : "com.apple.platform.iphonesimulator",
"modelCode" : "iPhone13,4",
"identifier" : "A52D2D58-B6BD-4C61-AFBE-639EFE362D30",
"architecture" : "x86_64",
"modelUTI" : "com.apple.iphone-12-pro-max-1",
"modelName" : "iPhone 12 Pro Max",
"name" : "iPhone 12 Pro Max"
},
{
"simulator" : true,
"operatingSystemVersion" : "7.2 (18S561)",
"available" : true,
"platform" : "com.apple.platform.watchsimulator",
"modelCode" : "Watch6,1",
"identifier" : "C4EE3B74-4097-4F8D-BDB5-560CA060115E",
"architecture" : "x86_64",
"modelUTI" : "com.apple.watch-series6-1",
"modelName" : "Apple Watch Series 6 - 40mm",
"name" : "Apple Watch Series 6 - 40mm"
},
{
"simulator" : true,
"operatingSystemVersion" : "7.2 (18S561)",
"available" : true,
"platform" : "com.apple.platform.watchsimulator",
"modelCode" : "Watch6,2",
"identifier" : "149263C1-3A14-49F2-ACCF-A06FD55D0999",
"architecture" : "x86_64",
"modelUTI" : "com.apple.watch-series6-1",
"modelName" : "Apple Watch Series 6 - 44mm",
"name" : "Apple Watch Series 6 - 44mm"
}
]
[ +45 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +3 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +250 ms] Generating /Users/yuechen/Desktop/flutter_app/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +104 ms] Starting incremental build...
[ +2 ms] Initializing file store
[ +13 ms] Skipping target: gen_localizations
[ +9 ms] complete
[ +6 ms] Launching lib/main.dart on 我的iPMax in debug mode...
[ +8 ms] /Users/yuechen/FlutterSDK/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
/Users/yuechen/FlutterSDK/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/yuechen/FlutterSDK/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names
-Ddart.developer.causal_async_stacks=true --output-dill /var/folders/x6/s_l6ktdn3wb05_p8zfyn327r0000gn/T/flutter_tools.nQXjPU/flutter_tool.hGgYjl/app.dill
--packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions
--enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill.track.dill
[ +14 ms] executing: /usr/bin/plutil -convert json -o - /Users/yuechen/Desktop/flutter_app/ios/Runner/Info.plist
[ +20 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Users/yuechen/Desktop/flutter_app/ios/Runner/Info.plist
[ ]
{"CFBundleShortVersionString":"$(FLUTTER_BUILD_NAME)","CFBundleIdentifier":"$(PRODUCT_BUNDLE_IDENTIFIER)","CFBundleInfoDictionaryVersion":"6.0","UIMainStoryb
oardFile":"Main","CFBundleVersion":"$(FLUTTER_BUILD_NUMBER)","UILaunchStoryboardName":"LaunchScreen","CFBundleExecutable":"$(EXECUTABLE_NAME)","LSRequiresIPh
oneOS":true,"UISupportedInterfaceOrientations":["UIInterfaceOrientationPortrait","UIInterfaceOrientationLandscapeLeft","UIInterfaceOrientationLandscapeRight"
],"UIViewControllerBasedStatusBarAppearance":false,"CFBundleSignature":"????","CFBundlePackageType":"APPL","CFBundleDevelopmentRegion":"$(DEVELOPMENT_LANGUAG
E)","UISupportedInterfaceOrientations~ipad":["UIInterfaceOrientationPortrait","UIInterfaceOrientationPortraitUpsideDown","UIInterfaceOrientationLandscapeLeft
","UIInterfaceOrientationLandscapeRight"],"CFBundleName":"flutter_app"}
[ +5 ms] executing: [/Users/yuechen/Desktop/flutter_app/ios/] /usr/bin/xcodebuild -list
[ +20 ms] <- compile package:flutter_app/main.dart
[ +842 ms] Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -list
⣽[ +11 ms] executing: [/Users/yuechen/Desktop/flutter_app/ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project
/Users/yuechen/Desktop/flutter_app/ios/Runner.xcodeproj -scheme Runner -showBuildSettings
[ ] executing: [/Users/yuechen/Desktop/flutter_app/ios/Runner.xcodeproj/] /usr/bin/xcodebuild -project
/Users/yuechen/Desktop/flutter_app/ios/Runner.xcodeproj -scheme Runner -showBuildSettings
⡿[+1194 ms] Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project /Users/yuechen/Desktop/flutter_app/ios/Runner.xcodeproj
-scheme Runner -showBuildSettings
[ +30 ms] Building Runner.app for 00008020-001D24240CA3002E
[ +23 ms] executing: xattr -r -d com.apple.FinderInfo /Users/yuechen/Desktop/flutter_app/ios
[ +233 ms] Automatically signing iOS for device deployment using specified development team in Xcode project: 7KG9UQ3UFK
[ +59 ms] executing: /usr/bin/plutil -convert json -o - /Users/yuechen/Desktop/flutter_app/ios/Runner/Info.plist
[ +22 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Users/yuechen/Desktop/flutter_app/ios/Runner/Info.plist
[ ]
{"CFBundleShortVersionString":"$(FLUTTER_BUILD_NAME)","CFBundleIdentifier":"$(PRODUCT_BUNDLE_IDENTIFIER)","CFBundleInfoDictionaryVersion":"6.0","UIMainStoryb
oardFile":"Main","CFBundleVersion":"$(FLUTTER_BUILD_NUMBER)","UILaunchStoryboardName":"LaunchScreen","CFBundleExecutable":"$(EXECUTABLE_NAME)","LSRequiresIPh
oneOS":true,"UISupportedInterfaceOrientations":["UIInterfaceOrientationPortrait","UIInterfaceOrientationLandscapeLeft","UIInterfaceOrientationLandscapeRight"
],"UIViewControllerBasedStatusBarAppearance":false,"CFBundleSignature":"????","CFBundlePackageType":"APPL","CFBundleDevelopmentRegion":"$(DEVELOPMENT_LANGUAG
E)","UISupportedInterfaceOrientations~ipad":["UIInterfaceOrientationPortrait","UIInterfaceOrientationPortraitUpsideDown","UIInterfaceOrientationLandscapeLeft
","UIInterfaceOrientationLandscapeRight"],"CFBundleName":"flutter_app"}
[ +6 ms] executing: mkfifo /var/folders/x6/s_l6ktdn3wb05_p8zfyn327r0000gn/T/flutter_tools.nQXjPU/flutter_build_log_pipe.Rv0jNf/pipe_to_stdout
[ +17 ms] Exit code 0 from: mkfifo /var/folders/x6/s_l6ktdn3wb05_p8zfyn327r0000gn/T/flutter_tools.nQXjPU/flutter_build_log_pipe.Rv0jNf/pipe_to_stdout
[ +11 ms] Running Xcode build...
[ +2 ms] executing: [/Users/yuechen/Desktop/flutter_app/ios/] /usr/bin/env xcrun xcodebuild -configuration Debug VERBOSE_SCRIPT_LOGGING=YES -workspace
Runner.xcworkspace -scheme Runner BUILD_DIR=/Users/yuechen/Desktop/flutter_app/build/ios -sdk iphoneos ONLY_ACTIVE_ARCH=YES ARCHS=arm64
SCRIPT_OUTPUT_STREAM_FILE=/var/folders/x6/s_l6ktdn3wb05_p8zfyn327r0000gn/T/flutter_tools.nQXjPU/flutter_build_log_pipe.Rv0jNf/pipe_to_stdout
FLUTTER_SUPPRESS_ANALYTICS=true COMPILER_INDEX_STORE_ENABLE=NO
’‘’
The text was updated successfully, but these errors were encountered: