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
Related
when I try to archive the app or run in a real device, I always get below errors:
ld: library not found for -ldevice_info
clang: error: linker command failed with exit code 1 (use -v to see invocation)
but if I just run in a simulator, everything is ok, if I try to remove the device_info package, then it will also show another package not found:(
I am using the latest flutter dev sdk, and I have setup a valid iOS developer certificates.
Thanks!
It seems that the solution here in this SO post as mentioned in the comment works for this case:
In new projects, in the iOS part is necessary to adjust a few
parameters, such as signing, and that you can only do in Xcode.
So, try to open the iOS project with Xcode and try to build it from
there. You'll see better warning and error messages there, specially
regarding signing.
You can open Xcode and locate your project ios folder, or:
cd yourproject/ios
open -a Xcode .
Then select Product > Run in the menu.
Also, this GitHub post discussion could also be a possible reason for other cases. Try to check the following:
I was able to successfully archive with your pubspec.yaml.
Can you confirm you opened ios/Runner.xcworkspace and NOT ios/Runner.xcodeproj? See Better handle case where a developer
opens Runner.xcodeproj instead of Runner.xcworkspace
#10770.
Did you run flutter build ios before you Archived? See https://flutter.dev/docs/deployment/ios#create-a-build-archive.
I just downloaded and unpacked the ZIP for InAppSettingsKit.
For all three versions of the sample app, I am having problems when trying to build and run in Xcode 10.0:
IASKSampleAppStaticLibrary.xcodeproj: fatal error: 'InAppSettingsKit/IASKSpecifier.h' file not found
InAppSettingsKitSampleApp.xcodeproj: CustomViewCell.xib:global: error: Compiling IB documents for earlier than iOS 7 is no longer supported.
InAppSettingsKitSampleAppStoryboard.xcodeproj: 'InAppSettingsKit/IASKAppSettingsViewController.h' file not found (in SettingsViewController.h)
Are these sample apps not up-to-date or am I missing something?
Just open the InAppSettingsKit.xcworkspace and select any target.
I have an haunting issue. I am trying to build an React Native app in Xcode 8. Build/Run in Simulator works fine but as soon I start to archive I am getting the following error:
Apple Mach-O Linker (ld) Error Group
clang: error: linker command failed with exit code 1 (use -v to see invocation)
That's the only error and it's after all steps have been completed with no further explanation.
Now I installed Fastlane and found out that it fails because of duplicate symbols. Removing the duplicates from "Linked Frameworks and Libraries" solves the issue and allows me to archive the app.
However now I can't build anymore for the simulator because of missing symbols.
I been looking into this for 2 days now and I can't find a solution.
Anyone has an idea why this is happening and how to solve it?
I found the solution for it!
Based on this thread https://github.com/facebook/react-native/issues/12814 if you use Pods, it also includes the base react project which will end up causing the duplicate references.
In order to fix this issue, the react reference need to be removed:
Open your [yourproject].xcworkspace
Select your Pods project
In TARGETS delete React. (clicking on the minus button - below of the targets list.)
Clean (Product > Clean) & archive/build/whatever.
Kudos to andfk for this solution!
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.
Ever since I switched to Yosemite, I have been getting an Xcode quit unexpectedly error whenever I try to run SDL2. I can't even get a "hello world" to run.
I am trying the fix it by following the directions on this page:
Xcode 5 crashes when running an app with SDL 2
But I don't know how to "Compile the "Framework" target in Xcode/SDL/SDL.xcodeproj" I tried just simply building it but that doesn't seem to work because I don't see any framework file showing up.
Can someone help me figure out how to get rid of this error?
I assume you have got the latest version of the code either by doing hg clone http://hg.libsdl.org/SDL or by downloading the latest snapshot from https://www.libsdl.org/hg.php
This should give you a directory called SDL which contains the source and all of the projects. You will want to open 'Xcode/SDL/SDL.xcodeproj'
Then ensure the following is set as your build target - Framework > My Mac (64-bit) You can change it by clicking on it.
Then hit CMD+B (or select Product->Build from the menu) to build the framework. You will then be able to find the SDL2.framework in the following location:
/Users/*yourusername*/Library/Developer/Xcode/DerivedData/SDL2-*randomstring*/Build/Products/<*Debug/Release*>
Copy the framework to /Library/Frameworks