Post

Replies

Boosts

Views

Activity

App Validation failing on bare dylib due to “Couldn't find platform family for 'libopencv_world.4.1.1.dylib'”
We've been trying to submit an app linking against a bare dylib (that is, it's not part of a framework). It's by itself in the .app/Frameworks/ folder. But I get a rejection from App Validation:Couldn't find platform family for "libopencv_world.4.1.1.dylib". Coulnd't find CFBundleSupportedPlatforms in the Info.plist or LC_VERSION_MIN in the Mach-O for path "/Users/…/Library/Developer/Xcode/Archives/2020-02-18/App Debug 2020-02-18, 04.14 .xcarchive/Products/Applications/App.app/Frameworks/libopencv_world.4.1.1.dylib".The dylib is built for deployment on iOS 12.0 using iOS 13.2 SDK. It contains a loader command LC_BUILD_VERSION:$ otool -l libopencv_world.4.1.1.dylib | grep -A4 VERSION cmd LC_BUILD_VERSION cmdsize 32 platform 2 sdk 13.2 minos 12.0Prior to iOS 12.0, the linker emits a LC_VERSION_MIN_IPHONEOS loader command.It seems like App Validation is erroneously rejecting the binary, but is there something I can do to address this?
0
0
603
Feb ’20
code signature not valid for use in process
I can run my app in the Simulator just fine, but when I try to run it on a device, it chokes with:dyld: Library not loaded: @rpath/MyF.framework/MyF Referenced from: /private/var/containers/Bundle/Application/48637C68-CE05-4B9A-BC3B-EC85295707B8/My.app/My Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/48637C68-CE05-4B9A-BC3B-EC85295707B8/My.app/Frameworks/MyF.framework/MyFIt’s set to Embed and Sign my framework, but it doesn't like the signature. What am I doing wrong? The CodeSign step in the Xcode build seems to go off without any errors.
0
0
560
Feb ’20
"no matching architecture in universal wrapper", but file has it
We build some C++ code that uses Tensorflow Lite on multiple platforms. I'm trying to link it into our iOS build. I created a universal shared library with a couple of shared libraries built by that team. They build them as individual shared libraries with one architecture per file (one for macOS, one for iOS arm64, and one for iOS x86). I put the two iOS files together using lipo, and I was able to link and run in the Simulator. Unfortunately, I can't exercise that code path in the Simulator (for other reasons), so I built and ran on a device.But when I try to run on a device, I getdyld: Library not loaded: @rpath/libtensorflowlite.so Referenced from: /private/var/containers/Bundle/Application/E3E3B0E9-B36E-4ADB-9FFC-CA2D6D2A8AC8/MyApp.app/MyApp Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/E3E3B0E9-B36E-4ADB-9FFC-CA2D6D2A8AC8/MyApp.app/Frameworks/libtensorflowlite.so: no matching architecture in universal wrapperI know the App Store doesn't like x86 bits in universal shared libraries, so I used lipo in an Xcode build phase to remove the x86 part, and now my file looks like:$ file /Users/rmann/Library/Developer/Xcode/DerivedData/MyApp-fdskkibuvbsubudkmqtgsjxmyqme/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/libtensorflowlite.so /Users/rmann/Library/Developer/Xcode/DerivedData/MyApp-fdskkibuvbsubudkmqtgsjxmyqme/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/libtensorflowlite.so: Mach-O universal binary with 1 architecture: [arm64:Mach-O 64-bit dynamically linked shared library arm64] /Users/rmann/Library/Developer/Xcode/DerivedData/MyApp-fdskkibuvbsubudkmqtgsjxmyqme/Build/Products/Debug-iphoneos/MyApp.app/Frameworks/libtensorflowlite.so (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64But it still doesn't see it.I do something similar with another library we get from a third party, and everything works fine. How can I inspect this further to determine what the issue is? Thanks.
1
0
2.6k
Jan ’20
"Duplicate output file"/"Unable to build node" for localized folders
We have some HTML content embedded in our app. These live in two top-level folders. These folders have been localized, and so live in Resources/en.lproj/HelpContent and Resources/fr.lproj/HelpContent (for example). Similarly, we have a bunch of localized .storyboard files.Xcode 8 builds this just fine. Xcode 9b6 complains:duplicate output file '/Users/me/Library/Developer/Xcode/DerivedData/MyApp- fdskkibuvbsubudkmqtgsjxmyqme/Build/Products/Debug-iphoneos/MyApp.app/ HelpContent' on task: CpResource /Users/me/Projects/Clients/MyCompany/repo/mp_vision/iOS/Controller/MyApp /Resources/fr.lproj/HelpContent /Users/me/Library/Developer/Xcode/DerivedData/MyApp- fdskkibuvbsubudkmqtgsjxmyqme/Build/Products/Debug-iphoneos/MyApp.app/ HelpContent (in target 'MyApp')unable to build node: '/Users/me/Library/Developer/Xcode/DerivedData/MyApp- fdskkibuvbsubudkmqtgsjxmyqme/Build/Products/Debug-iphoneos/MyApp.app/ HelpContent' (node is produced by multiple commands; e.g., 'b1132708c20f997e752faabcee01d49c82a500833121dcd848c3954357d9f7b1: CpResource /Users/me/Projects/Clients/MyCompany/repo/mp_vision/iOS/Controller/MyApp /Resources/en.lproj/HelpContent /Users/me/Library/Developer/Xcode/DerivedData/MyApp- fdskkibuvbsubudkmqtgsjxmyqme/Build/Products/Debug-iphoneos/MyApp.app/ HelpContent' and 'b1132708c20f997e752faabcee01d49c82a500833121dcd848c3954357d9f7b1: CpResource /Users/me/Projects/Clients/MyCompany/repo/mp_vision/iOS/Controller/MyApp /Resources/fr.lproj/HelpContent /Users/me/Library/Developer/Xcode/DerivedData/MyApp- fdskkibuvbsubudkmqtgsjxmyqme/Build/Products/Debug-iphoneos/MyApp.app/ HelpContent')The Files & Groups list shows it correctly (e.g. "HelpContent" with "HelpContent (English)" and "HelpContent (French)" as sub-folders. The folders only show up once in the Copy Bundle Resources phase.But the build stops almost immediately on this error.
12
0
17k
Aug ’17