Skip to content

Commit

Permalink
Fix podspecs.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikas-taroza committed Dec 27, 2022
1 parent c994f86 commit 79cb609
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ios/simple_audio.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ version = "1.0.1"
lib_url = "https://github.com/erikas-taroza/simple_audio/blob/v#{version}/ios/Frameworks/simple_audio.xcframework"

`
mkdir Frameworks
cd Frameworks
if [ ! -d simple_audio.xcframework ]
then
mkdir simple_audio.xcframework
cd simple_audio.xcframework
mkdir ios-arm64
mkdir ios-arm64_x86_64-simulator
curl #{lib_url}/Info.plist?raw=true -o Info.plist
curl #{lib_url}/ios-arm64/libsimple_audio.a?raw=true -o ios-arm64/libsimple_audio.a
curl #{lib_url}/ios-arm64_x86_64-simulator/libsimple_audio.a?raw=true -o ios-arm64_x86_64-simulator/libsimple_audio.a
curl -L "#{lib_url}/Info.plist?raw=true" -o Info.plist
curl -L "#{lib_url}/ios-arm64/libsimple_audio.a?raw=true" -o ios-arm64/libsimple_audio.a
curl -L "#{lib_url}/ios-arm64_x86_64-simulator/libsimple_audio.a?raw=true" -o ios-arm64_x86_64-simulator/libsimple_audio.a
fi
cd ../..
`
Expand Down
3 changes: 2 additions & 1 deletion macos/simple_audio.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ version = "1.0.1"
lib_url = "https://github.com/erikas-taroza/simple_audio/blob/v#{version}/macos/Libs/libsimple_audio.a?raw=true"

`
mkdir Libs
cd Libs
if [ ! -f libsimple_audio.a ]
then
curl #{lib_url} -o libsimple_audio.a
curl -L "#{lib_url}" -o libsimple_audio.a
fi
cd ..
`
Expand Down

0 comments on commit 79cb609

Please sign in to comment.