I am trying to set up CI/CD for my React Native App using GitHub actions. I have added Firebase configuration files for my project as GitHub Secrets. The iOS build workflow fails with the following error log.
2021-10-05T12:43:48.3073900Z ** BUILD FAILED **
2021-10-05T12:43:48.3075130Z
2021-10-05T12:43:48.3075970Z
2021-10-05T12:43:48.3077170Z The following build commands failed:
2021-10-05T12:43:48.3081040Z CopyPlistFile /Users/runner/Library/Developer/Xcode/DerivedData/TLS-dlqmcvmjotwzuugkybwxlhjuzmzz/Build/Products/Debug-iphoneos/TLS.app/GoogleService-Info.plist /Users/runner/work/ALT/ALT/App/ios/GoogleService-Info.plist
2021-10-05T12:43:48.3086250Z (1 failure)
2021-10-05T12:43:48.3584560Z ##[error]Process completed with exit code 65.
I have tried changing the target path of the GoogleService-Info.plist but the same error persists. The workflow file can be found here. Any insights into this would be helpful.
Related
I am trying to build KMM project following kotlinlang.org/docs on my Mac M1
Getting error when run KMM project for IOS app after add io.ktor:ktor-client-core:2.2.2 dependency
It is working fine without io.ktor dependencies, but its failed with io ktor Command PhaseScriptExecution failed with a nonzero exit code
My Gradle verions: 7.5
How I can solve this issue?
I had similar issues a few days back. Here's how I solved it:
Step 1
upgrade: ktorVersion = "2.2.2"
to: ktorVersion = "2.2.3"
Step 2
In your build.gradle.kts
upgrade: classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
to: classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20")
Step 3
In your build.gradle.kts (:shared) remove the below code if you've previously used it
I have created fresh project(Hello World) in KMM followed by their official website. In android it works smooth but when I am trying to run in XCode it's giving errors because of which I am unable to build / run the xcode project. I have attached screenshots and logs for my errors. Somehow xcode scheme is not getting generated in the KMM platform that's what I am guessing.
Can anyone please help me understand what am I missing?
Any help would be appriciated.
Following is my dev env:
Xcode 11.4.1
Android 4.1.2
Kotling Plugin version 1.4.30 (stable)
KMM 0.2.0```
XCode Logs:
> Task :shared:compileKotlinIosX64
Downloading native dependencies (LLVM, sysroot etc). This is a one-time action performed only on the first run of the compiler.
Extracting dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz into /Users/fatin/.konan/dependencies
e: java.lang.RuntimeException: Cannot extract archive with dependency: /Users/fatin/.konan/cache/clang-llvm-apple-8.0.0-darwin-macos.tar.gz.
> Task :shared:compileKotlinIosX64 FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:compileKotlinIosX64'.
> Compilation finished with errors
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
1 actionable task: 1 executed
Command PhaseScriptExecution failed with a nonzero exit code ```
[![enter image description here][3]][3]
I reached out to community for this and finally found the solution. Here is the link to that issue which I raised and solved this problem.
If anyone else is going through this same issue it mostly cause of corrupted kotlin file.
Also try checking your cmd line tools in XCode as per comments.
Hope this helps someone. Cheers.
If the project doesn't run right away even on opening it from Xcode and shows the shared framework is missing, Then try generating the shared framework for iOS platform using terminal. Navigate to the project folder and execute
Command: ./gradlew packForXcode Now the shared framework should have a xcode-frameworks product and you should be able to build and run the project through Xcode.
This could happen if there are two libraries, where one library was compiled against the different version of the other library than the one currently used in the project. Please check that the project configuration is correct and has consistent versions of dependencies.
When I am sending iOS build with new Codename One Scanner library (I varify import statement and its import com.codename1.ext.codescan.CodeScanner;)
then I am getting following error generated on server and iOS build is failed.
In file included from /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build8058354584873816611xxx/dist/StockTake-src/com_codename1_ext_codescan_NativeCodeScannerImpl.m:2:
In file included from /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build8058354584873816611xxx/dist/StockTake-src/ScanCodeImplExt.h:13:
/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build8058354584873816611xxx/dist/StockTake-src/CVZBarReaderViewControllerExt.h:3:9: fatal error: 'ZBarReaderViewControllerExt.h' file not found
** BUILD FAILED **
The following build commands failed:
CompileC build/StockTake.build/Release-iphoneos/StockTake.build/Objects-normal/armv7/com_codename1_ext_codescan_NativeCodeScannerImpl.o StockTake-src/com_codename1_ext_codescan_NativeCodeScannerImpl.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
its working for android, only iOS is having issue.
-----Edit-----
I have downloaded .cn1lib from the link provided in installation step on https://github.com/codenameone/cn1-codescan and I downloaded it today again to check latest.
It looks like I forgot to upload the lastest build after fixing this same issue back in December. I have rebuilt with latest sources and uploaded the cn1lib. Try downloading again. Should work now.
I'm trying to add Fabric to my project, which is using CocoaPods with Carthage. What I did:
In Fabric app, I've created a new app
In the project I've created new run script called 'Fabric', copied the code from Fabric app (the script is the last script in my project!)
Because the framework file couldn't be found, I've added proper path to Framework Search Paths.
I've also added Fabric framework to my project Link Binary with Libraries stage.
The project still does not build. The error:
2015-07-14 10:51:30.161 run[46263:967908] Fabric.framework/run 1.3.16
2015-07-14 10:51:30.169 run[46263:967908]
Fabric: dSYM Error
Unable to process MyApp.app.dSYM at path
/Users/me/Library/Developer/Xcode/DerivedData/MyApp-gmgvycoixcnkriauasdffkzvdg/Build/Products/Debug-iphonesimulator/MyApp.app.dSYM
Make sure your project build settings are generating a dSYM file.
DEBUG_INFORMATION_FORMAT should be set to dwarf-with-dsym for all configurations.
This could also be a timing issue, make sure the Fabric run script build phase
is the last build phase and no other scripts have moved the dSYM from the location Xcode generated it.
Command /bin/sh failed with exit code 1
What is wrong..? How to fix it?
Got it. When moving framework to different folder I forgot to change run script from:
./Fabric.framework/run ...
to:
./Frameworks/Fabric.framework/run ...
Everything is working now.
I'm trying to setup Jenkins to compile an iOS Xcode project. The xcode project uses CocoaPods. However, I get this error in Jenkins when I attempt a build. All files in the Pods/ directory have full write/read/execute permissions. Any thoughts?
/bin/sh -c /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MyApp-dripdwqnufuksvhcfgcgxajaahyq/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Script-EAAE77068BA044C9B06632CE.sh
/Users/samy/Work/mobile/iphone/MyApp/Pods/Pods-resources.sh: line 5: /Users/samy/Work/mobile/iphone/MyApp/Pods/resources-to-copy-MyApp.txt: Permission denied
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Copy\ Pods\ Resources /Users/Shared/Jenkins/Library/Developer/Xcode/DerivedData/MyApp-dripdwqnufuksvhcfgcgxajaahyq/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Script-EAAE77068BA044C9B06632CE.sh
(1 failure)
Build step 'Xcode' marked build as failure
Finished: FAILURE
"Full read/write/execute permissions" for whom? Which user? Jenkins usually runs under it's own user, called jenkins
The only workaround I came across was to move the entire Xcode project to jenkins user directory.
You might want to add a custom build setting PODS_ROOT
PODS_ROOT=$(PROJECT_DIR)/Pods