After an auto-upgrade from Xcode 12.1 to 12.2 yesterday, the following command from my build started failing:
From within Xcode I can see that only macOS 11 (Big Sur) options are displayed for adding as project frameworks, and that JavaVM.framework is no longer listed as an option.
I downloaded and reinstalled Xcode 12.1, which resolved my issue. Command succeeds now and JavaVM.framework is available in Xcode.
However, I cannot find any documentation on the path forward. Was this framework intentionally removed in this point release? Will it be possible to upgrade beyond 12.1 and still build legacy products with JavaVM.framework?
Code Block clang++ -I/Users/<username>/git/<product>-javacpp/src/main/cpp -I/usr/local/include -I/Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk-14.0.2.jdk/Contents/Home/include/darwin /Users/<username>/git/<product>-javacpp/target/classes/com/<product>/javacpp/video/ffmpeg/jniAvFormatCallbackFactory.cpp /Users/<username>/git/<product>-javacpp/src/main/java/jnijavacpp.cpp -march=x86-64 -m64 -O3 -Wl,-rpath,@loader_path/. -Wall -fPIC -dynamiclib -undefined dynamic_lookup -o libjniAvFormatCallbackFactory.dylib -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lavformat -lavutil -framework JavaVM ld: framework not found JavaVM
From within Xcode I can see that only macOS 11 (Big Sur) options are displayed for adding as project frameworks, and that JavaVM.framework is no longer listed as an option.
I downloaded and reinstalled Xcode 12.1, which resolved my issue. Command succeeds now and JavaVM.framework is available in Xcode.
However, I cannot find any documentation on the path forward. Was this framework intentionally removed in this point release? Will it be possible to upgrade beyond 12.1 and still build legacy products with JavaVM.framework?