arrow: [Python] App Store Rejection Due to Non-Public APIs in PyArrow (libarrow.1900.dylib)
Describe the bug, including details regarding any error messages, version, and platform.
When submitting our app containing pyarrow to the app store we get the following rejection:
Your app uses or references the following non-public or deprecated APIs: Contents/Resources/app_packages/pyarrow/libarrow.1900.dylib
Symbols: • _CCCryptorGCMFinalize • _CCCryptorGCMAddAAD • _CCCryptorGCMSetIV
The use of non-public or deprecated APIs is not permitted on the App Store, as they can lead to a poor user experience should these APIs change and are otherwise not supported on Apple platforms.
For some further context we are embedding python into a swift app via PythonKit. We are using arrow Flight as part of the app. Our app is about the enter alpha and we are trying to pass beta app review for external TestFlight distribution.
I found an issue in another project that seems similar: https://github.com/awslabs/aws-crt-swift/issues/206
Workaround?
We are attempting to build a version without these symbols, following the instructions on this page: https://arrow.apache.org/docs/developers/python.html#building-on-linux-and-macos
However, we are not sure if we are setting the correct build flags or if we are setting the build flags correctly.
venv_name="pyarrow-dev"
if [ ! -d "$venv_name" ]; then
echo "Creating virtual environment: $venv_name"
python3.13 -m venv "$venv_name"
else
echo "Virtual environment '$venv_name' already exists."
fi
source "$venv_name/bin/activate"
python3.13 -m pip install -r arrow/python/requirements-build.txt
pushd arrow/python
git clean -Xfd .
popd
rm -rf dist
mkdir dist
export ARROW_HOME=$(pwd)/dist
export LD_LIBRARY_PATH=$(pwd)/dist/lib:$LD_LIBRARY_PATH
export CMAKE_PREFIX_PATH=$ARROW_HOME:$CMAKE_PREFIX_PATH
export ARROW_FLIGHT=ON
export ARROW_PARQUET=ON
export PARQUET_REQUIRE_ENCRYPTION=OFF
export ARROW_BUILD_TYPE=release
cmake -S arrow/cpp -B arrow/cpp/build \
-DCMAKE_INSTALL_PREFIX=$ARROW_HOME \
--preset ninja-release-python
cmake --build arrow/cpp/build --target install
pushd arrow/python
export PYARROW_PARALLEL=4
python3.13 setup.py build_ext --build-type=$ARROW_BUILD_TYPE \
--bundle-arrow-cpp bdist_wheel
popd
Component(s)
Python
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (7 by maintainers)
I’ve just scimmed this but what you need is a wheel built for distribution like we build the wheels for pypi.
The easiest way to do this is probably cibuildwheel which copies dynamic dependencies into the wheel and checks that rpaths work etc.