"compilation errors"
I was trying out EarlGrey on one of my apps as a POC. If that goes well, I was planning to use the same for the enterprise app that our company is working on.
I setup the framework as described in the github page. The link is https://github.com/google/EarlGrey/blob/master/docs/install-and-run.md
I followed all the steps and added EarlGrey.swift file too in my tests folder. Because it was the way the Demo project in EarlGrey project directory was setup. Unfortunately I started getting 13 compilation errors in EarlGrey.swift file. I was getting "Use of unresolved identifier grey_accessibilityID" errors all over. Snapshot attached.
I have tried most scenarios, please let me know if you have any ideas.
Have you tried importing EarlGrey in the bridging header?
See Swift section in https://github.com/google/EarlGrey/blob/master/docs/install-and-run.md#swift
Update:
The fix was to rename the EarlGrey-1.0.0 folder to EarlGrey that's downloaded by Pods and fix all the broken links in the xcode project.
Related
Hello Everyone I'm trying to inject kurento client in my swift app through cocoapods
pod 'KurentoToolbox'
successfully installed and after disabling bitcode for target project and kurento framework the build got successful, but whenever i try to import KurentoToolbox following error shows up
Then I try to Kurento Framowork in Linked Framework and Libraries as well as embedded libraries, but still facing the error Kindly see the attached the screenshots.screen shot after adding the framework , now after compiling the project it throws the following the error.receiving this error
Kindly Check these screen shot which may help to better answer this question.
Add KurentoToolbox into your embedded libraries. Usually this solves the problem but still if it doesn't, then try to add both of them in Linked Framework and Libraries as well as embedded libraries.
Also quit your xcode and go to your derived data folder and deletes derived data files(also empty your trash).
When I build my application for running everything is fine, it builds without errors, runs smoothly,
while I build it for profiling I got Swift compiler errors, related to the Charts framework, for ex.:
swift:12:54: 'ChartViewDelegate' is unavailable: cannot find Swift declaration for this protocol
swift:13:32: 'BarChartView' is unavailable: cannot find Swift declaration for this class
Maybe the reason is in that how I added Charts framework?
I downloaded Charts project, build it and dragged & dropped the project bundle into xCode.
As a result I got in Frameworks group the following:
Charts.framework, Charts-Swift.h, Charts.h
Should I find files(within Charts project what I built separately) with classes that linker/compiler failed to recognize and add them into my project, or some additional project configuration is required?
Can you help me?
Update:
when in Settings/scheme I change Profile build configuration from Release to Debug - everything is ok.
And I build my application in Debug mode.
Is the same mode debug/release required for build of application to run and to profile?
You must add Charts.framework to every target of your project.
Let me know in the comments if this is the problem.
I'm following this tutorial to create a custom framework. I have tried the source code as in that tutorial, excepts that when building the framework, I just select "Build Only Device>Generic iOS Device" and press Command+B, instead of using the build scripts introduced in that tutorial. It works fine for me with the source code copied from that tutorial.
After that, I tried to build my own framework with storyboard and build it like above, then try using it in a simple test app. The framework built successful but when I include it in the test app, it doesn't work. The error message is:
I am using the latest version of xcode and mac osx. My entire source code for both test application and simple framework is in this link. Please take a look and help me find what is going wrong. Thanks so much!
Solved
I just find out why. It seems like that is because I have opened both Test Application and the framework project in two workspaces. Closing the framework project before import it to the Test Application solve the problem.
Can you check target membership at right pane for this class?
Check all boxes if it is empty.
I'm having issues getting a framework to work when checking out my project from a repository. If I check out the project I get a build error:
'Module SQLite not found'.
I went into Build Phases and checked that everything was properly set. I tried deleting the entry under Link Binary with Libraries and then re-adding it. This is where the issue occurs. When I go to add the framework, again, it doesn't show up.
For other parts of the Build Phase: Target Dependencies and Copy Files I can delete the entries and re add them and the framework still shows up no problem.
Unfortunately, I don't have enough reputation to post photos but the links to the Xcode screenshots can be found here: http://imgur.com/a/OfWLm
I'm assuming it's a configuration error because all of the required files are in the repository as well as the checkout folder. So if anyone could assist me in figuring out what needs to be changed, that would be greatly appreciated.
Note I'm using Xcode 6.1 and the framework in question is SQLite.swift found here.
I've read through the article referring to this in xcode 4.5, but it didn't help me in xcode 5.0.2.
I have a project that compiles successfully. If I add the Stripe framework to my project then it immediately fails to compile and gives me this file not found error for an #import made in this header file:
Stripe/Vendor/PaymentKit/PaymentKit Example/PaymentKit Test/PKCardNumberTest.h:9:9: 'SenTestingKit/SenTestingKit.h' file not found
I do not have the SenTesting framework in my link libraries. If I add it I get an error about it being an OSX library and not an ios. None of the Stripe documentation gives any indication that you need to add this library. I sent their support an email and they told me they don't have any information.
Anyone out there have any suggestions? Again, as soon as I add the framework to my project (and I am making sure it copies the files to my project) it fails to compile.
I tried adding quotes around my framework search paths, but it just changed the error so now Parse/Parse.h was no longer found.
The two framework search paths I have are: $(inherited) and /Users/ctam/Documents/development/Chw
See the Xcode 5.0 Release Notes:
Unit Testing
The CPlusTest unit testing framework has been removed
from Xcode 5. To write unit tests for C++ code, use the new XCTest
framework and create Objective-C++ (.mm) test case subclasses. 8273037
SenTestingKit and OCUnit are deprecated. Use the migrator to move to
XCTest. 14857574
When you download the Stripe library via the link in their documentation there are a bunch of subfolders for a test project they don't tell you about. I looked through and removed the test application files and everything works fine now. Curious that their explicit directions lead to this problem.