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

Initial macOS build #7

Merged
merged 2 commits into from
Jan 22, 2022
Merged

Initial macOS build #7

merged 2 commits into from
Jan 22, 2022

Conversation

karniv00l
Copy link
Contributor

@karniv00l karniv00l commented Jan 22, 2022

Hi there,

This is working for me on Apple M1 Max.

Almost everything is auto-generated. Build failure was fixed by including libc++ in the Runner.

However, I can't get past the authorization and I don't know how to debug it. After successful authorization, or when the credentials are present in the local storage, the app is terminated with: Could not cast value of type 'NSNull' (0x7ff84ed1fbf0) to 'NSArray' (0x7ff84ed1fc50).

Edit: Crash is caused when acquiring global hotkeys for media control

Launching lib/main.dart on macOS in debug mode...
lib/main.dart:1
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:x86_64, id:0C9BB34F-30D3-5661-8B67-9D5B424D3A4B }
{ platform:macOS, name:Any Mac }
ld: warning: dylib (/Users/piotrek/git/flutter/spotube/build/macos/Build/Products/Debug/just_audio/just_audio.framework/just_audio) was built for newer macOS version (10.12.2) than being linked (10.11)
ld: warning: object file (/Users/piotrek/git/flutter/spotube/build/macos/Build/Products/Debug/Pods_Runner.framework/Pods_Runner(Pods-Runner-dummy.o)) was built for newer macOS version (11.6) than being linked (10.11)
ld: warning: object file (/Users/piotrek/git/flutter/spotube/build/macos/Build/Products/Debug/Pods_Runner.framework/Pods_Runner(Pods_Runner_vers.o)) was built for newer macOS version (11.6) than being linked (10.11)
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/piotrek/git/flutter/spotube/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.6, but the range of supported deployment target versions is 10.9 to 12.2. (in target 'FMDB' from project 'Pods')
Connecting to VM Service at ws://127.0.0.1:53321/-uq30cwrXkI=/ws

════════ Exception caught by rendering library ═════════════════════════════════
The following assertion was thrown during layout:
A RenderFlex overflowed by 44 pixels on the bottom.

The relevant error-causing widget was
Column
lib/components/Login.dart:42
You can inspect this widget using the 'Inspect Widget' button in the VS Code notification.
The overflowing RenderFlex has an orientation of Axis.vertical.
The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and black striped pattern. This is usually caused by the contents being too big for the RenderFlex.

Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the RenderFlex to fit within the available space instead of being sized to their natural size.
This is considered an error condition because it indicates that there is content that cannot be seen. If the content is legitimately bigger than the available space, consider clipping it with a ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex, like a ListView.

The specific RenderFlex in question is: RenderFlex
════════════════════════════════════════════════════════════════════════════════
Could not cast value of type 'NSNull' (0x7ff84ed1fbf0) to 'NSArray' (0x7ff84ed1fc50).
Lost connection to device.
Exited (sigterm)

@KRTirtho
Copy link
Owner

Wow, that's a huge step forward for the project
Thanks for the contribution. You did great!😃❤️

@KRTirtho KRTirtho merged commit 2199035 into KRTirtho:master Jan 22, 2022
@karniv00l karniv00l deleted the macos branch January 22, 2022 18:12
@TheLesbianCollector TheLesbianCollector mentioned this pull request Jul 19, 2023
1 task
@Domipoke Domipoke mentioned this pull request Sep 2, 2023
1 task
@Carbon-Axion Carbon-Axion mentioned this pull request Jan 8, 2024
1 task
@paolog1994 paolog1994 mentioned this pull request Jan 24, 2024
2 tasks
@BlorisL BlorisL mentioned this pull request Jan 26, 2024
2 tasks
@chen-junl chen-junl mentioned this pull request Jan 26, 2024
2 tasks
@Soyasi Soyasi mentioned this pull request Jan 28, 2024
2 tasks
@Stauber382 Stauber382 mentioned this pull request Apr 3, 2024
2 tasks
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

Successfully merging this pull request may close these issues.

None yet

2 participants