IOS Xcode 8 Dsymulti Warning - ios

I just update my project to Xcode 8 but don't know why my xcode console is flood with Dsymulti warning message.
while processing /Volumes/Data/OneDrive/Singpost/Esam/Vic/Version1/SAM/eSAM/SAMKiosk/Classes/Libs/NETS/libNETS.a(NETS.o):
warning: /Users/Chetas/Library/Developer/Xcode/DerivedData/ModuleCache/9CPWN0R8YQPE/Foundation-A3SOD99KJ0S9.pcm: No such file or directory
note: Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable static libraries should never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information.
while processing /Volumes/Data/OneDrive/Singpost/Esam/Vic/Version1/SAM/eSAM/SAMKiosk/Classes/Libs/NETS/libNETS.a(NETS.o):
warning: /Users/Chetas/Library/Developer/Xcode/DerivedData/ModuleCache/9CPWN0R8YQPE/ObjectiveC-2CD0WTQVXITO7.pcm: No such file or directory
while processing /Volumes/Data/OneDrive/Singpost/Esam/Vic/Version1/SAM/eSAM/SAMKiosk/Classes/Libs/NETS/libNETS.a(NETS.o):
warning: /Users/Chetas/Library/Developer/Xcode/DerivedData/ModuleCache/9CPWN0R8YQPE/CoreFoundation-10I2D2XL7L7X9.pcm: No such file or directory
My project still can build successfully. Any one know how can we deal with these warnings?

For me, I could solve setting in Build Settings
Generate Debug Symbols = No

Related

Flutter Plugin Development native vendored_frameworks file not found

I'm working on the flutter-webrtc plugin for iOS. Previously, the plugin use the prebuilt cocoapods dependency. But, in the WebRTC M80 Release Notes they state they are going to be deprecating the mobile libraries.
To stay up to date with the latest iOS native WebRTC bugfixes and features, we now need to build from source.
I've built from source and I was testing it with WebRTC's AppRTCMobile example app and it is working over there. Now I am trying to import the WebRTC.framework into the flutter plugin and I'm having trouble.
There is no flutter documentation on this, but I followed guidance from this github issue. I've copied the binary built from source into the plugin ios directory and modified the flutter_webrtc.podspec to include the framework, but I'm getting the error:
Xcode's output:
↳
In file included from /Users/corey/Workspace/flutter/flutter-webrtc/ios/Classes/FlutterWebRTCPlugin.m:1:
/Users/corey/Workspace/flutter/flutter-webrtc/ios/Classes/FlutterWebRTCPlugin.h:4:9: fatal error: 'WebRTC/RTCDataChannel.h' file not found
#import <WebRTC/RTCDataChannel.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /Users/corey/Workspace/flutter/flutter-webrtc/ios/Classes/FlutterRTCVideoRenderer.m:1:
In file included from /Users/corey/Workspace/flutter/flutter-webrtc/ios/Classes/FlutterRTCVideoRenderer.h:1:
/Users/corey/Workspace/flutter/flutter-webrtc/ios/Classes/FlutterWebRTCPlugin.h:4:9: fatal error: 'WebRTC/RTCDataChannel.h' file not found
#import <WebRTC/RTCDataChannel.h>
^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description
I'm really new to flutter plugin development so I'm not sure if I'm doing this correctly. Any tips would be very appreciated!
After adding the binary to the plugin ios directory, I needed to manually go into my app's ios directory (the app depending on the plugin) and manually run pod install && pod update.
After that, the plugin import errors were fixed and I'm now using WebRTC built from source in the flutter-webrtc plugin :)

no main-page.xml, other errors

Running on mac os, High Sierra, xode correctly installed and certificates issued.
tns run ios
produces the following and does not generate a main-page.xml file -- why?
Note - simulator does launch and displays a blank iphone - if I manually create a main-page.xml file it runs but doesn't load the 'may app' apple image as suggested. Any help with the errors below and other would be appreciate as I'm stuck. Thanks.
Building project…
Xcode build…
=== BUILD TARGET HellowWorld OF PROJECT HellowWorld WITH CONFIGURATION Debug ===
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/UIKit-1V5UHAPTOD24G.pcm:
No such file or directory
note: Linking a static library that was built with -gmodules, but the
module cache was not found. Redistributable static libraries should
never be built with module debugging enabled. The debug experience
will be degraded due to incomplete debug information.
while processing
/Users/XXX5/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Darwin-38I6DLZ5IH61J.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Foundation-3DFYNEBRQSXST.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/Dispatch-2LX9MWM6UEPQW.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/9G23JDZCI6P8/ObjectiveC-1R06XOY9T4FIM.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/UIKit-1V5UHAPTOD24G.pcm:
No such file or directory
note: Linking a static library that was built with -gmodules, but the
module cache was not found. Redistributable static libraries should
never be built with module debugging enabled. The debug experience
will be degraded due to incomplete debug information.
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Darwin-38I6DLZ5IH61J.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Foundation-3DFYNEBRQSXST.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/Dispatch-2LX9MWM6UEPQW.pcm:
No such file or directory
while processing
/Users/XXX/temp/NATIVE/HellowWorld/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveSync.o):
warning:
/Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Y0LVQ9G7OBT/ObjectiveC-1R06XOY9T4FIM.pcm:
No such file or directory
Project successfully built.
Installing…
Successfully installed on device with identifier
‘02A10B95-DB8D-4C7B-8220-839642BCB7C2’.
Successfully transferred all files.
Refreshing application…
Successfully synced application org.nativescript.HellowWorld on device
02A10B95-DB8D-4C7B-8220-839642BCB7C2
.

How to solve Xcode compile warning: "when processing... in... no such file or directory"?

When I build in Debug schema, I see no warnings, but in Release I get 2 warnings:
while processing /Users/[path to my xcode project]/libUserVoice.a(UserVoice.o):
warning: /var/folders/s_/m1fjy19n3_x5tnr4pfvx_z1c1111gp/C/com.apple.DeveloperTools/7.0-7A218/Xcode/SharedPrecompiledHeaders/UserVoice_Prefix-cemskxhozggatlabrcxqvydduxjw/UserVoice_Prefix.pch.pch: No such file or directory
while processing /Users/[path to my xcode project]/libUserVoice.a(UserVoice.o):
warning: /var/folders/s_/m1fjy19n3_x5tnr4pfvx_z1c1111gp/C/com.apple.DeveloperTools/7.0-7A218/Xcode/SharedPrecompiledHeaders/UserVoice_Prefix-axbllcwdvmtdfsgaozoqlvgidayx/UserVoice_Prefix.pch.pch: No such file or directory
In fact there is no such directory as /var/folder/s_.
I think I this is the first release build since update to Xcode 7.3.
What did not help so far:
Cleaning build folder
Restarting Xcode
Removing files in ~/Library/Developer/Xcode/DerivedData/
Removing files in ~/Library/Caches/com.apple.dt.Xcode/
Removing folders and files in all folders /var/folders/.../SharedPrecompiledHeaders
What I observed:
The Xcode parameter Precompiled Headers Cache Path points to a different directory /var/folders/ck/...
What is the reason for these warnings?
OK what finally helped was:
Removing the library libUserVoice.a mentioned in the warning
Getting the source code from github and rebuilding the library
Adding the newly built library
When I removed the new library and replaced it with the old one the warnings appeared again. The old one is a compiled binary that is provided by the vendor. So it seems this has nothing to do with Xcode but with the vendor's build. Still, if anyone can shed light on this issue it would be interesting to know the background.
Hint: Make sure to build the library as a universal binary so it can run on both ARM (iOS device) and i386 (iOS Simulator) architectures.

When trying to build DisplayCandy, the terminal gives me this error

DisplayCandy is an animations framework for iOS. I'm trying to modify it (with the author's permission of course) to mimic the iOS 6.x animations on iOS 7.x/8.x. First off, I wanted to see if the original code worked on iOS 8.x, but this happened when running "make package" in terminal:
Making all in displaycandysettings...
Making all for bundle DisplayCandySettings...
Copying resource directories into the bundle wrapper...
Compiling DCSettingsListController.m...
Linking bundle DisplayCandySettings...
Stripping DisplayCandySettings...
Signing DisplayCandySettings...
Making all for tweak DisplayCandy...
Compiling DCFunctions.m...
DCFunctions.m:3:10: fatal error: 'GraphicsServices/GraphicsServices.h' file not
found
#include <GraphicsServices/GraphicsServices.h>
^
1 error generated.
make[2]: *** [obj/DCFunctions.m.4c382f22.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [DisplayCandy.all.tweak.variables] Error 2
I have set the theos symlinks in both the project files and the files for the preference panel. The code is available here. I'm not the developer of the original tweak, but I am going to modify it to mimic the iOS 6 animations. How do I fix the error? It seems there's a file missing, but I don't know where I can obtain this file, nor do I know where I should put the file. I'm using a MacBook Pro on OS X 10.10.1, and am trying to deploy to an iPod touch 5th generation running iOS 8.1.
That's a really old framework you're dealing with there. GraphicsServices is part of the undocumented headers for iOS 3.x and 4.x. It originates from the https://github.com/kennytm/iphone-private-frameworks GitHub project.
Given the import path GraphicsServices/GraphicsServices.h you would need to put the GraphicsServices folder at the root level of your project to fix the compilation error.

Can't compile plcrashreporter in Xcode 4

I can use the prebuilt framework provided on the plcrashreporter project page when compiling for the device, but not for the simulator. I have the same problem described here.
I assume the prebuilt framework does not support the simulator's architecture, so I downloaded out the plcrashreporter source. I opened the Xcode project and selected the CrashReporter-iOS-Simulator > iPhone 4.3 Simulator target. When I try to build the project, I get this error:
libtool: unknown option character `D' in: -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000
I get the same error when I try to build most of the other targets (such as for device).
My next step was to try adding the source files to my project. I no longer have the aforementioned problem; however, I get this error when I try to compile:
fatal error: 'crash_report.pb-c.h' file not found [2]
#import "crash_report.pb-c.h"
^
1 error generated.
Command clang failed with exit code 1
The crash_report.pb-c.h file which is mentioned in the error message simply does not exist; I've searched the plcrashreporter source tree and the internet. Therefore, I have to assume that this file is supposed to be generated somehow, but I cannot figure out how.
(Commenting out the line in PLCrashReport.m on which crash_report.pb-c.h is included results in numerous other compilation errors.)
You are correct in that the file does not exist normally, nor does crash_report.pb-c.c exist, which will be your next error after this one.
The crash_report.pb.h and crash_report.pb.c files are generated at compile time through a build rule. You need to add a custom script to your build process to make them.
First, make sure you have protoc-c in the plcrashreporter folder of your project (plcrashreporter-1.0/Dependencies/protobuf-2.0.3/bin/protoc-c). They buried it deep. This is what your script will be running.
Then find your crash_report.proto file. This is the main input that protoc-c will be using to create your missing files. You can take this directory and put it manually into your script, OR you can make a rule to run the script on every *.proto file. I do the latter.
Then edit your build rules to include a script that runs protoc-c with the flag --c_out="${DERIVED_FILES_DIR}" and your crash_report.proto file as two inputs, this will output crash_report.pb-c.h and crash_report.pb-c.c into the same directory as where your crash_report.proto file is, which should already be accessible in your project.
The build rules in Xcode 4 (and above) are under your project's target's build rules tab. You add a build rule before all your other build rules. Here's what mine looks like in Xcode:
You'll probably have to fiddle with the directory

Resources