Xcode Signing issue while running Pod lib lint in Xcode 14 - xcode

While running pod lib lint throwing the following issue.
error: Cannot code sign because the target does not have an Info.plist file and one is not being generated automatically. Apply an Info.plist file to the target using the INFOPLIST_FILE build setting or generate one automatically by setting the GENERATE_INFOPLIST_FILE build setting to YES (recommended). (in target 'App' from project 'App')
This works while using Xcode 13.4 but not working on Xcode 14
bundle exec pod lib lint throwing the eror

Related

Not able to run flutter application in simulator (iOS 15)

I have update flutter version from 1.x to 2.8.x and now I am trying to run application in Xcode 13.1 and Simulator iOS 15. I am facing this error. 'mobileffmpeg/LogDelegate.h' file not found and Command CompileSwiftSources failed with a nonzero exit code I tried some available solutions but it won't work for me.
I am using latest cocoa pod version 1.11.3
Error-Log (After performing flutter clean and flutter pub get and pod install in iOS)
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/username/Library/Developer/Xcode/DerivedData/Runner-ewlkrnytkuoiywhfslyuauileapw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/mobile-ffmpeg-https.build/Script-4C68ADEB2D24F6C2D2249598537085F9.sh:
line 2: /Users/username/Documents/spieler_coach part 2/ios/Pods/Target Support Files/mobile-ffmpeg-https/mobile-ffmpeg-https-xcframeworks.sh: Permission denied
Command PhaseScriptExecution failed with a nonzero exit code
error: the following command failed with exit code 0 but produced no further output
CompileC /Users/username/Library/Developer/Xcode/DerivedData/Runner-ewlkrnytkuoiywhfslyuauileapw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/webview_flutter_wkwebview.build/Objects-normal/arm64/FlutterWebView.o /Users/username/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter_wkwebview-2.7.1/ios/Classes/FlutterWebView.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'webview_flutter_wkwebview' from project 'Pods')
note: Building targets in dependency order
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
When you upgrade your flutter version some libs can not work anymore. Have you know meaning of ^ yet? For example: you're using lib abc in version 5.10 like this
abc: ^5.1.0 and abc has other version 5.2.0, ...5.9.0 and 6.0.0. If you use ^ that means version range is from 5.1.0 to 5.9.0. Maybe it has issue in ver 5.9.0. Moreover, sometimes the cause is not your library but its dependency. The abc lib uses xyz inside then it uses higher version that conflict with your flutter version.
So solution here is:
Try fix hard version of all libraries, remove using ^: abc: 5.1.0
If problem comes from dependency of your lib such as xyz. Check your xyz ver from pubspec.lock then add more package xyz into pubspec.yaml with compatible version.
Update:
You seems get issue with package https://pub.dev/packages/flutter_ffmpeg, please check Readme at section label:
2.1.2 iOS (Flutter >= 2.x) then replace two lines below:
def flutter_install_ios_plugin_pods(ios_application_path = nil)
↓
def flutter_install_plugin_pods(application_path = nil, relative_symlink_dir, platform)
plugin_pods = flutter_parse_plugins_file(plugins_file)
↓
plugin_pods = flutter_parse_plugins_file(plugins_file, platform)
Moreover, because the package was discontinued. You should change to https://pub.dev/packages/ffmpeg_kit_flutter

React native xcodebuild archive failed with exit status 65 on Fastlane - RealmJS Pods

I am trying to automate my react native app publish to app store by using fastlane. Archiving the app manually using xcode is successful. However when i use Fastlane, the build app step fails with exit status 65.
error: Unable to load contents of file list: '/Target Support Files/RealmJS/RealmJS-xcframeworks-input-files.xcfilelist' (in target 'RealmJS' from project 'Pods')
error: Unable to load contents of file list: '/Target Support Files/RealmJS/RealmJS-xcframeworks-output-files.xcfilelist' (in target 'RealmJS' from project 'Pods')
I have tried deleting my Pods folder, Podfile.lock and doing a fresh pod install. However, the issue with realmJS still occurs.
XCode version: Version 13.0 (13A233)
React-native: 0.65.1
Realm-js: 10.8.0
Fastlane: 2.197.0
Anyone encountered similar issue?
Finally got it to work. Turns out I had specified the wrong configuration for the build_app step in the Fastfile. I had renamed my configuration from "Release" to "Release Staging" after creating different schemes.
So from:
build_app(
configuration: "Release",
export_method: "app-store",
...
)
To:
build_app(
configuration: "Release Staging",
export_method: "app-store",
...
)

pod command is not recognized when running flutter project

I have tried every suggestion and solution in stack overflow and GitHub and yet I am not able to run pod install and I get pod : command not found , also my pod file is empty.
Warning: CocoaPods not installed. Skipping pod install.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds
to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install:
sudo gem install cocoapods
Running Xcode build...
Xcode build done. 6.4s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
error: /Users/seyedaliaghamali/Documents/projects/my_app/ios/Flutter/Debug.xcconfig:1:
could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-
Runner.debug.xcconfig' in search paths (in target 'Runner')
error: /Users/seyedaliaghamali/Documents/projects/my_app/ios/Flutter/Debug.xcconfig:1:
could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-
Runner.debug.xcconfig' in search paths (in target 'Runner')
error: /Users/seyedaliaghamali/Documents/projects/my_app/ios/Flutter/Debug.xcconfig:1:
could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-
Runner.debug.xcconfig' in search paths (in target 'Runner')
error: /Users/seyedaliaghamali/Documents/projects/my_app/ios/Flutter/Debug.xcconfig:1:
could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-
Runner.debug.xcconfig' in search paths (in target 'Runner')
error: /Users/seyedaliaghamali/Documents/projects/my_app/ios/Flutter/Debug.xcconfig:1:
could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-
Runner.debug.xcconfig' in search paths (in target 'Runner')
error: /Users/seyedaliaghamali/Documents/projects/my_app/ios/Flutter/Debug.xcconfig:1:
could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-
Runner.debug.xcconfig' in search paths (in target 'Runner')
warning: Capabilities for Runner may not function correctly because its entitlements
use a placeholder team ID. To resolve this, select a development team in the build settings
editor. (in target 'Runner')
note: Using new build systemnote: Planning buildnote: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
The error was caused by CocoaPods not being installed, therefore pod install can't be run. Simply install CocoaPods to solve this issue. Run either sudo gem install cocoapods or install it without sudo following this guide.

fail to find header file when using Cocoapods version 1.0 - works fine with Cocoapods version 0.39

I'm trying to use libFLAC compiled to iOS in my project, using CocoaPod to install as a dependancy.
The trouble is the workspace is created just fine if I use CocoaPod version 0.39 but there is a build error if I use CocoaPod version 1.0 (see below for details about the error)
I'm using the project https://github.com/evature/flac-ios
My podfile contains:
source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/evature/Eva-Pods.git'
platform :ios, '8.0'
use_frameworks!
target 'ExampleApp' do
pod 'JSQMessagesViewController', '~>7.0'
pod 'libFLAC', '~>1.3.0'
pod 'RXPromise', '~>0.13.0'
end
The compile error is of a missing header file (inside the libFlac source) -
#include "private/bitmath.h" << 'private/bitmath.h' not found
This header file does exist in the Pods project under Pods/libFlac/CorePrivateHeaders
The libFlac podspec is at https://github.com/evature/Eva-Pods/blob/master/libFLAC/1.3.1/libFLAC.podspec
I'm using Xcode Version 7.3.1
I guess the blame is some breaking change between version 0.39 and version 1.0, but looking at the changelog and the Podspec I failed to find the breaking change.
Did a quick test. I think you have to remove the "use_frameworks!" line from your podfile. Since none of the other libraries are built using Swift you should be fine.
For me, it's caused by Xcode cache data. You can copy your project to a new file path and run to test this. Or delete the cache and run. This is how to delete:
Open Xcode Preference and select Locations:
Click arrow to Derived Data, and delete all files in DeriveData folder:
Run.

xcode build error framework not found

Okay, using xcode7, swift and ios7 target.
I installed cocoapods
I change terminal to my project file folder and ran pod setup
Now Podfile is in the same directory as my .xcodeproj file and loks like this:
plaform :ios, '7.0'
use_frameworks!
pod 'OAStackView'
I change terminal to my project file folder and run pod install
Now, if I try build I get:
Frame not found OAStackView clang: error: linker command failed with
exit code 1 (use -v to see invocation)
Am I supposed to do anything else to get OAStackView working? (I verified the problem also happens wih other pods) I have not yet imported it to any unit or anything, just trying to compile
I think you might be opening the .xcodeproj instead of opening .xcworkspace. With CocoaPods we have to open .xcworkspace file.

Resources