I am experiencing some problems building for iOS (Debug).
Steps to reproduce:
Create a new CN1 project. Send iOS build -> no errors.
Drag parse4cn1.cn1lib into the lib folder -> iOS build fails with "java.lang.UnsupportedClassVersionError: com/moe/ibuddy2/iBuddyApplication : Unsupported major.minor version 52.0".
Some googling reveals that this may mean that JDK 1.8 isn't supported. Therefore, I edit build.xml, replacing "1.8" with "1.7" everywhere.
When I send the iOS build now, the error message is "/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build2564350766160402235xxx/dist/iBuddyApplication-src/com_parse4cn1_nativeinterface_Utils.m:3:9: fatal error: 'com_parse4cn1_ParsePush.h' file not found"
There are no problems running the simulator or building for Android.
The problem is not the JDK version (so please don't change it in build.xml). I think the actual issue is the 'file not found' error which is caused by stripping out of unused classes/methods by the CN1 build server. In this case, ParsePush is detected as a false positive (because it is actually used in the iOS native code and should not be stripped out).
The problem has been fixed in parse4cn1 version 2.0.1 which is available on github. Please try with that version.
Related
I am trying to run my application on my iPhone and receiving the following error. It is working fine on Simulator and release builds are also getting built.
error build: Build input file cannot be found: '/Users/mdjavedakhtar/Library/Developer/Xcode/DerivedData/baa-ejkeyxidrdwrgyctzidcxyrfemfc/Build/Products/Debug-iphoneos/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension'. Did you forget to declare this file as an output of a script phase or custom build rule which produces it?
Faced with the same issue after updating macOS to 13.2 and Xcode 14.2. Deleting of the project and cloning repo with install whole the project again helped me.
In my case removing arm64 value from Excluded Architectures > Debug solved the problem. (+ it should be removed from all targets including OnesignalNotificationService)
Since updating my flutter to 3.3+ everytime I try to build my project there is this error on the console:
Target web_release_bundle failed: ShaderCompilerException: Shader compilation of
"C:\flutter\packages\flutter\lib\src\material\shaders\ink_sparkle.frag" to "build\web\assets\shaders/ink_sparkle.frag"
failed with exit code -1073740791.
Compiling lib\main.dart for the Web... 52,1s
Exception: Failed to compile application for the Web.
I've tried running flutter clean, deleting the project and downloading it again from github, clearing pub-cache from c:\flutter folder and also deleting flutter and installing it again but nothing worked
If you are using a mac try to open 'Security & Privacy' and give permission to the app that requests it.
It may seem out of context. But it worked for me!
This error is present since 3.3.0 and until today (3.3.2), it wasn't fixed... but there are some workarounds:
1- Downgrade flutter to 3.0.5 (some updates to the libs you use won't be avaliable as they are migrating to 3.3+)
2- They are currently tracking the issue on github and the 'temp fix' is checking if your project is in a folder with a utf8 character (like 'â', 'Á' and maybe some chinese or japanese characters) and moving it to a folder only with ASCII characters.
Ex:
from -> C:\Users\user\Área de Trabalho\
to -> C:\Users\user\
I made a simple blank project and added Bugsee via swift-package-manager.
Its located on https://github.com/bugsee/spm.
I can successfully build project for iOS Device.
But it fails for Simulator. And the error is not really verbose
(the path is shortened):
Cannot open file handle for file at path: Path(str: ".../Bugsee.xcframework/ios-arm64_i386_x86_64-simulator/Bugsee.framework")
What does it mean?
The path is valid and the framework is there:
I also found that build for simulator is OK after I have added Bugsee.xcframework into Frameworks, Libraries, and Embedded Content.
Does anyone know what's wrong?
It looks like SPM in Xcode have an issue with i386 arch.
Bugsee released 1.28.0 with dropped support for i386 arch. And now Xcode starts building fine for simulator.
I think i should create a ticket in SPM tracker.
I just uploaded to Xcode 10 and the compilation of my app that is using the DJI Mobile SDK doesn't work anymore. The error message comes from the DJIWidget module. I remember seeing a message similar to this one on Xcode 9.3 but it was only a warning. The error message is this one:
Showing Recent Messages
:-1: Multiple commands produce '/Users/nachocarnicero/Library/Developer/Xcode/DerivedData/perceptionios-cuskgbsvtllwjkeyqpqurbegowwa/Build/Products/Debug-iphonesimulator/DJIWidget.framework/Headers/DJICalibratePixelBufferProvider.h':
1) Target 'DJIWidget' (project 'DJIWidget') has copy command from '/Users/nachocarnicero/git/Sterblue/MobileNew/ios/DJIWidget/DJIWidget/VideoPreviewer/Helper/ImageCalibrate/DJICalibratePixelBufferProvider.h' to '/Users/nachocarnicero/Library/Developer/Xcode/DerivedData/perceptionios-cuskgbsvtllwjkeyqpqurbegowwa/Build/Products/Debug-iphonesimulator/DJIWidget.framework/Headers/DJICalibratePixelBufferProvider.h'
2) Target 'DJIWidget' (project 'DJIWidget') has copy command from '/Users/nachocarnicero/git/Sterblue/MobileNew/ios/DJIWidget/DJIWidget/VideoPreviewer/Helper/ImageCalibrate/PixelBufferProvider/DJICalibratePixelBufferProvider.h' to '/Users/nachocarnicero/Library/Developer/Xcode/DerivedData/perceptionios-cuskgbsvtllwjkeyqpqurbegowwa/Build/Products/Debug-iphonesimulator/DJIWidget.framework/Headers/DJICalibratePixelBufferProvider.h'
As you can see from the following screenshot this error is blocking the compilation:
Has anyone encountered this issue and has managed to fix it?
Cheers,
Nacho
EDIT
I have managed to successfully compile the project with the "Legacy Build System" (by activating it under File->Workspace Settings), so this confirms that this is a problem with the "New Build System" which is enabled by default in Xcode 10
I recently upgraded to xcode 6.3.1. I tried creating a sample project from "Master Detail application" template, but build failed with the below error.
Device - Universal
language - swift
Not using Core Data
Errors:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/dispatch/dispatch.h:32:10:
error: 'stdarg.h' file not found
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/os/activity.h:38:9:
error: declaration of 'uint64_t' must be imported from module
'ObjectiveC.runtime' before it is required typedef uint64_t
os_activity_t;
I am new to development using Xcode.
It is likely that your installation of Xcode (or the simulator) is damaged.
You can try reinstalling the developer tools, or completely reinstall Xcode.
You can try to find out whether you've got modules for Objective-C enabled.
You can check it in here (follow the path):
Build Settings
section Apple LLVM 6.1 - Language - Modules
Enable Modules (C and Objective-C)
The answer to this question might be a clue as well: How to disable "curses.h" header (a part of "stdio.h in Xcode 6.3 OSX Yosemite) to avoid conflicting function declarations