I am using this command below for generating frameworks.
xcodebuild archive -scheme EmojisSdk -destination="generic/platform=iOS" -destination="generic/platform=iOS Simulator" SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
But on running it gives the following errors as
ld: library not found for -lPods-EmojisSdk
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ARCHIVE FAILED
The following build commands failed:
Ld /Users/apple/Library/Developer/Xcode/DerivedData/EmojisSdk-fikbvvvqdtuqxlbkevszkztpcfdh/Build/Intermediates.noindex/ArchiveIntermediates/EmojisSdk/IntermediateBuildFilesPath/EmojisSdk.build/Release-maccatalyst/EmojisSdk.build/Objects-normal/x86_64/Binary/EmojisSdk normal x86_64
Ld /Users/apple/Library/Developer/Xcode/DerivedData/EmojisSdk-fikbvvvqdtuqxlbkevszkztpcfdh/Build/Intermediates.noindex/ArchiveIntermediates/EmojisSdk/IntermediateBuildFilesPath/EmojisSdk.build/Release-maccatalyst/EmojisSdk.build/Objects-normal/arm64/Binary/EmojisSdk normal arm64
(2 failures)
My Xcode version is 11.6
Command line tools Xcode 12.0
Also when using the following command xcodebuild archive -scheme EmojisSdk -destination="iOS" -destination="macOS" SKIP_INSTALL=NO
the frameworks get created and then after that when XCFramework is generated and zipped then after that the pod lint will give error as
ld: building for iOS Simulator, but linking in dylib built for iOS, file '/var/folders/75/ml860n6960j8j6b6zg_tqhj80000gn/T/CocoaPods-Lint-20200824-7262-1j2oy6b-EmojisSdk/Pods/EmojisSdk/EmojisSdk.xcframework/ios-arm64/EmojisSdk.framework/EmojisSdk'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the App editor. (in target 'App' from project 'App')
warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
BUILD FAILED
The following build commands failed:
Ld /Users/dushyantpawar/Library/Developer/Xcode/DerivedData/App-foslikxmswhxbycjremlfsjfztqu/Build/Intermediates.noindex/App.build/Release-iphonesimulator/App.build/Objects-normal/arm64/Binary/App normal arm64
(1 failure)
Testing with `xcodebuild`.
-> EmojisSdk (0.0.3)
- WARN | http: The URL (`http://192.168.0.105:8080/newiosworkingdirectory21Aug2020/EmojisSdk/EmojisSdk.zip`) doesn't use the encrypted HTTPS protocol. It is crucial for Pods to be transferred over a secure protocol to protect your users from man-in-the-middle attacks. This will be an error in future releases. Please update the URL to use https.
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- NOTE | xcodebuild: note: Using new build system
- NOTE | xcodebuild: note: Building targets in parallel
- NOTE | xcodebuild: note: Using codesigning identity override: -
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
- NOTE | [iOS] xcodebuild: warning: [CP] Unable to find matching .xcframework slice in ' true ios-arm64/EmojisSdk.framework ios-arm64_x86_64-simulator/EmojisSdk.framework' for the current build architectures (arm64 i386 x86_64).
- NOTE | [iOS] xcodebuild: ld: warning: ignoring file EmojisSdk/EmojisSdk.xcframework/ios-arm64/EmojisSdk.framework/EmojisSdk, building for iOS Simulator-x86_64 but attempting to link with file built for iOS-arm64
- NOTE | [iOS] xcodebuild: ld: warning: ignoring file EmojisSdk/EmojisSdk.xcframework/ios-arm64/EmojisSdk.framework/EmojisSdk, building for iOS Simulator-i386 but attempting to link with file built for iOS-arm64
- NOTE | [iOS] xcodebuild: clang: error: linker command failed with exit code 1 (use -v to see invocation)
- NOTE | [iOS] xcodebuild: warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the App editor. (in target 'App' from project 'App')
- NOTE | [iOS] xcodebuild: warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
Analyzed 1 podspec.
[!] The spec did not pass validation, due to 1 error and 1 warning.
Please help as I am new to this Xcode and swift frameworks.
Post
Replies
Boosts
Views
Activity
Hi,
I need the crash reporting for iOS frameworks that I developed in swift. But the problem is any available Crashlytics tools are not for reporting crashes for iOS frameworks. Is there a way to report crashes for iOS frameworks developed with swift. Please, help I am pretty much new to the iOS development.