I try to generate framework named AfTestFramework
for ios. I created through Xcode Cocoa Touch Framework
with some basic code, ran it and got:
So far so good.
I created new Test Application and drag @ dropped AfTestFramework.framework
into the project, like crashlytics does (see below)
After building project and running I got Library not loaded
... Reason: image not found
:
dyld: Library not loaded: @rpath/AfTestFramework.framework/AfTestFramework Referenced from: /var/containers/Bundle/Application/9B12D0AD-94AA-4119-A5DE-6BCAA806FA9F/TestAvoidEmbedded1.app/TestAvoidEmbedded1 Reason: image not found
I know the solution is to attach this framework to Embedded Binaries
but I look for the way to avoid this approach.
Further, It demands to create 2 Frameworks: for Simulator and for Release otherwise I cannot release application with my framework, that looks a bit messy and weird.
I found that following frameworks work without Embedded Binaries
:
ans so on.
So far I didn't find any description, I know also that its something new.
I started to play with xcodebuild
like:
xcodebuild -sdk "iphoneos10.1" "ARCHS=arm64 armv7 armv7s" "VALID_ARCHS=arm64 armv7 armv7s" "ONLY_ACTIVE_ARCH=NO" -target AfTestFramework -configuration "Release" clean build
but no success.
Can somebody spread the light on this problem?