-
Notifications
You must be signed in to change notification settings - Fork 9
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
Can not build on iOS #30
Comments
The link expired so I can't view it. Can you please update it so I can take a look (expires in 1 day if possible)? That code is just a modified version of this. Last time I tested on Apple devices, everything worked fine 🤔
Maybe I should add that to .pubignore |
Failed Action: https://github.com/ProjectAnni/annix/actions/runs/5218497944/jobs/9419349659 I'm using the following snippet as workaround in my ci for now: - name: Build | iOS, but expect to fail
run: |
flutter clean
flutter build ios --release --verbose --build-number ${{ github.run_number }} || echo done
- name: Setup | Fix simple_audio
run: |
sa_version=1.5.5
sa_lib_url="https://github.com/erikas-taroza/simple_audio/blob/v${sa_version}/ios/Frameworks/simple_audio.xcframework"
cd ios/.symlinks/plugins/simple_audio/ios/Frameworks/simple_audio.xcframework
mkdir ios-arm64
mkdir ios-arm64_x86_64-simulator
curl -L "${sa_lib_url}/ios-arm64/libsimple_audio.a?raw=true" -o ios-arm64/libsimple_audio.a
curl -L "${sa_lib_url}/ios-arm64_x86_64-simulator/libsimple_audio.a?raw=true" -o ios-arm64_x86_64-simulator/libsimple_audio.a
cd ../../../../../../../
- name: Build | iOS
run: |
flutter build ios --release --verbose --build-number ${{ github.run_number }}
xcodebuild -workspace $PWD/ios/Runner.xcworkspace -scheme Runner -sdk iphoneos -configuration Release archive -archivePath $PWD/build/ios/iphoneos/Runner.xcarchive
xcodebuild -exportArchive -archivePath $PWD/build/ios/iphoneos/Runner.xcarchive -exportOptionsPlist $PWD/ios/exportOptions.plist -exportPath $PWD/build/ios/iphoneos/Runner.ipa
|
Just cached Here is without the file added to pubignore:
and with:
IIRC, the script will run if you see |
Sorry, there were some issues with the workflow. Have to debug more later. I uploaded a new version to |
Hello @Yesterday17. Does this issue still persist on v1.6.2? |
I may have time to test it these days. |
Ok. I will look into it when I have the time. Maybe I have to recreate the symlink. |
Hm, this is weird. When I clone the repo, I see the Swift code, not the symlink path. Maybe its worth to try this? |
This folder is extracted from archive file downloaded from pub.dev. So I think it's a publish issue? |
Ah ok. Yeah its the same in my pub cache. |
I have uploaded a prerelease |
Now the issue becomes:
Raw log:
I've confirmed that ios.zip is extracted. This build was performed after running |
However, It seems that those symbols exist in the bundle: yesterday17@Mac-mini ios-arm64 % otool -Sv libsimple_audio.a | grep wire
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_callback_stream__static_method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_dispose__static_method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_get_progress__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_has_preloaded__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_is_playing__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_loop_playback__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_new__static_method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_normalize_volume__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_open__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_pause__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_play__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_play_preload__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_playback_state_stream__static_method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_preload__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_progress_state_stream__static_method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_seek__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_set_metadata__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_set_volume__method__Player
simple_audio.simple_audio.a480f9851490759e-cgu.04.rcgu.o _wire_stop__method__Player I would dig deeper after today's work. |
https://pipelines.actions.githubusercontent.com/serviceHosts/1990a263-8757-4bdb-9dd4-b3aaea312869/_apis/pipelines/1/runs/794/signedlogcontent/4?urlExpires=2023-06-09T13%3A48%3A08.6604963Z&urlSigningMethod=HMACV1&urlSignature=fGkYGY3ZFMpMBQciH9j6D%2Fm9jbaNTo97HkQyOHla%2Bm0%3D
This script exist in
simple_audio.podspec
:But directory
simple_audio.xcframework
already exists(in published package). So the following download script is never executed, making the compilation fail.Another strange behavior is that even though I've removed the xcframework directory, it still can not build. It seems that the script is not executed?
The text was updated successfully, but these errors were encountered: