Posts

Post not yet marked as solved
11 Replies
85k Views
I have build a custom framework and everything was working fine until the update of XCode 11. The new XCode 11 released and we now I am unable to run my Custom Framework into a project in Simulator. I always get this errorCould not find module 'CustomFrameworkName' for target 'x86_64-apple-ios-simulator'; found: arm64, armv7-apple-ios, arm64-apple-ios, arm, armv7Can someone please let me know how to fix this error. I have already tried adding the framework and tried running the same in a different project however I am not able to fix this. Any help would be appreciated. Thanks
Posted
by cbgcbfd.
Last updated
.
Post not yet marked as solved
4 Replies
2.7k Views
Hi All,I am creating an xcframework and I was able to create one but now I want to add bitcode support to my custom created xcframework however I am unable to do so. I have followed the following steps for making it bitcode enabled:Select the framework project and switch to “Build Settings” tabUnder “Build Options”, switch Enable Bitcode to YESUnder “Apple LLVM 9.0 - Custom Compiler Flags”, “Other C Flags”, add -fembed-bitcode to both Debug and ReleaseClick the “+” button and select “Add User-Defined Setting”Enter BITCODE_GENERATION_MODE as the valueSet BITCODE_GENERATION_MODE to bitcodeDo the same to Pods project as follows, if it existsThe following error I am getting while creating XCframework with bitcode enabled. Can anyone please answer and help me on this.The following build commands failed: Ld /tmp/iphoneos/Build/Intermediates.noindex/ArchiveIntermediates/frameworkName/IntermediateBuildFilesPath/frameworkName.build/Release-iphoneos/frameworkName.build/Objects-normal/armv7/Binary/frameworkName normal armv7(1 failure)
Posted
by cbgcbfd.
Last updated
.
Post not yet marked as solved
1 Replies
1.1k Views
HiI have created a custom XCframework and now i am trying to upload it on cocoapods so that my clients can use it on thier projects. However i am unable to push on pods due to the following error ERROR | [iOS] file patterns: The source_files pattern did not match any file. My XCFramework heirarchy looks like this XCFramework ----- info.plist, ios-armv7_arm64 , ----------------------myCustomFramework ----------------------Headers -----------------Source Files ios-i386_x86_64-simulator ----------------------myCustomFramework ----------------------Headers -----------------Source FilesI have tried with this podspec filePod::Spec.new do |spec|spec.name = 'CustomFramework'spec.version = '1.0.0-beta1'spec.license = {:type => 'MIT', :file => 'License.md'}spec.homepage = ''spec.authors = { 'ABC DEF' => 'abc.def@gamil.in'}spec.summary = ''spec.source = { :http => 'Link of my file'}spec.source_files = 'CustomFramework.xcframework/ios-armv7_arm64/CustomFramework.framework/Headers/.{h,m,swift}', 'CustomFramework.xcframework/ios-i386_x86_64-simulator/CustomFramework.framework/Headers/.{h,m,swift}'spec.library = 'z', 'sqlite3', 'xml2.2'spec.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' } spec.documentation_url = '' spec.framework = 'CustomFramework'spec.exclude_files = "Classes/Exclude"spec.platform = :ios, "10.0"end
Posted
by cbgcbfd.
Last updated
.
Post not yet marked as solved
0 Replies
752 Views
HiI Have a library and i want this library to be compatible with all xcode versions so according to WWDC its possible with module stabilityI have performed the steps to create my XCFramework 1. i have archived using command and got a ios.xcarchive and iossimulator.xcarchive2. Now i have merged this to archive to create my XCFramework using command terminbal . xcodebuild -create-xcframework -framework and got my framework as myframework.xcframework3. I have added this in my project. The issues that i am facing with this is a). Could not build Objective-C module 'FrameworkName' b). 'libxml/tree.h' file not found . even though i have added this in my Link Binary and libraries c). Failed to load module 'Framework'I have followed the entire video of WWDC but still i am not able to figure out what is wrong
Posted
by cbgcbfd.
Last updated
.
Post not yet marked as solved
0 Replies
406 Views
I have a custom framework built and when an end developer uses my custom framework and if the app crashes it shows the the framework build path (The local machine path from which the framework was built).Please help me with this as it's not correct to show the local path of the farmework in the end users console.It happens in Xcode 11 only and it wasn't happening in the previous version of xcode.
Posted
by cbgcbfd.
Last updated
.
Post not yet marked as solved
2 Replies
629 Views
when build my custom framework with xcode 11 or 11.1 with build libraries for distribution set to yes getting the complile error as shown in the image. I want to enable module Statbility for my custom framework so that it would compile for all the future versions of swift. If any one has any thoughts let me know i am stuck at this point. Tried Couple of things but no luck.
Posted
by cbgcbfd.
Last updated
.