dyld: Symbol not found: __TMPdCSs12AnyGenerator - ios

when I try to build and Run my project it gives me an error of symbol not found: __TMPdCSs12AnyGenerator
I had installed Xcode 7 beta on my system. When I installed it gives me an error of realm module not found so I just removed realm framework and added again after adding this frameworks again it gives about stated error.

I have encountered this problem after I update my XCode from 7.2 to 7.3. I use a framework build from XCode7.2. After I rebuild the framework on XCode7.3, the problem was solved.

You need to add Realm.framework and RealmSwift.framework to the “Embedded Binaries” section of your Xcode target.
You can check, if you have followed these steps correctly by following these steps:
Select your project in the Project Navigator.
Select your application target in the side bar in the section "Targets".
Navigate to the tab "Build Phases"
Expand the phase "Embed Frameworks"
The destination should equal "Frameworks". The list should contain Realm.framework and RealmSwift.framework.
If such phase doesn't exist, please create a Copy Files phase by clicking on the plus in the upper left corner and selecting "New Copy Files Phase". Select as destination "Frameworks" and add the Realm.framework and the ReamSwift.framework there.
I've added two exemplary screenshots below, so you can compare graphically how it should look like.
General Tab
Build Phases Tab
Application Bundle in the Built Products Directory

there's an update released for these frameworks to support Swift 2.2 (Xcode 7.3):
https://github.com/realm/realm-cocoa/releases/tag/v0.98.6

Related

Error while migrating project from Xcode 10.3 to Xcode 11.5

I am trying to migrate swift project from Xcode 10.3(swift 4.2) to Xcode 11.5(Swift 4.2) but getting error. The below error I get when I run the project first time.
and if I fix this error by setting the Build Distribution property to "NO" then I get the below error.
Now I want to set the Build Distribution property to Yes and want to fix the bridging header issue. I have explored for all the possible solutions but unable to find the right one which could fix it. Please help.
This is my podfile
Problem is your PaymentSDK is old.
First remove the old framework and follow below steps to get a new one and update it.
For Swift
Download the sdk from here. You have an option to download bitcode enabled and disabled SDK
Open your project in XCode and from File menu, select Add files to "yourproject"
Select Paytm.framework in the directory you just unzipped
Make sure 'Copy items if needed' is checked and Click 'Add'
Under "Link Binary With Libraries" in the "Build Phases" tab of your project settings, add SystemConfiguration.framework
Check if PaytmSDK.framework is added in both “Link Binary With Libraries” and “Embedded Binaries”. If not, add by clicking on the plus icon
Referemce from here.

Ambiguous installation instructions for Realm iOS

Steps 3 and 4 say:
In your unit test target’s “Build Settings”, add the parent path to
RealmSwift.framework in the “Framework Search Paths” section.
If using
Realm in an iOS, tvOS or watchOS project, create a new “Run Script
Phase” in your app’s target’s “Build Phases” and paste the following
snippet in the script text field:
bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework/strip-frameworks.sh"
This step is required to work around an App Store submission bug when
archiving universal binaries.
But it doesn't say where the unit test target's "Build Settings" or app's target's "Build Phases" are. Where are these things?
The Build Settings and Build Phases panes are panels in Xcode which have various settings and whatnot that you can customize to your needs.
To follow the instructions that Realm provided, you can navigate to "Test" however this will change to what your project is called.
And then Build Settings and Build phases are available around the middle of your screen at the top in Xcode. See the following screenshot:
From there you can open up Build Phases and click the plus (+) on the left hand side to create a "New Run Script Phase."
And from there, all what's left is filling in the information we supply in the documentation to create the run script phase.
I hope this helps. Cheers!

Xcode - Bundle format unrecognized, invalid, or unsuitable

Ok so I have just about managed to get to this point on my own but am now having some issues code signing the app specifically with the AdMob framework. I am getting this error:
Command /usr/bin/codesign failed with exit code 1 the details it are giving are as follows: Applications/MyApp.app/Frameworks/GoogleMobileAds.framework: bundle format unrecognized, invalid, or unsuitable
I have read the other posts on the site and tried many different ways of fixing this. If I untick 'Code Sign On Copy' the archive builds successfully but then fails on validation with a match error. This is how I have my frameworks set up currently:
Any help would be much appreciated!
I saw this same issue with a different framework.
The solution for me was removing the framework from the 'Embedded Binaries' section and only adding it to the 'Linked Frameworks and Libraries' section in the target 'General' tab.
I have just seen the same issue but with a different framework that was the social framework and then I did below:
go to build phase -> embed frameworks -> press copy only when installing check box
then it worked with me with no error
I had a similar problem but with a different framework. The solution for me was to make sure that the framework was present in these three places:
General tab:
Embedded Binaries
Linked Frameworks and Libraries
Build Phases tab:
Embed Frameworks
I ran into this issue when using a different framework.
Clear the DerivedData solve this issue.
https://docs.sentiance.com/sdk/troubleshooting/ios/bundle-format-unrecognized-invalid-or-unsuitable
Go to Xcode menu bar and select File > Project Settings (or Workspace Settings).
Under Per-User Workspace Settings, find the shortcut to DerivedData folder and open it via Finder.
Remove the entire content of the folder and empty the Trash.
Restart Xcode.
In Xcode 11.*
Target -> General -> Linked Frameworks and Libraries
change related framework with option "Do Not Embed"
Else Check on the :
Target -> Build Phase -> Link Binary With Libraries
Check status with Required/Optional - try it with required first.

ios - moving frameworks broke the project

I recently added the Social.framework and Accounts.framework to my ios project. It was placed on top of the navigator area and I dragged those two into the frameworks folder. Then it showed in red color in the Build Phases "Link Binary with Libraries" ....and now the project crashes on startup.
What did I do so wrong? And what is the correct way to fix this?
I get this error:
dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Referenced from: /Users/owner12/Library/Application Support/iPhone Simulator/5.1/Applications/823A0485-7443-4206-B9F5-A84C03DBFB89/BusinessPlan.app/BusinessPlan
Reason: image not found
You didn't do anything wrong. Sometimes Xcode gets confused. I would suggest that you edit the project, scroll down to where it lists the frameworks, and select the Social and Accounts frameworks and click the Minus button.
After that, you might want to quit Xcode and clean out the build folder as described here:
How to Empty Caches and Clean All Targets Xcode 4
If that doesn't solve it, you might have to revert to an earlier commit.

Cordova/PhoneGap: Linker Error after installing calendarPlugin

Ive just installed the calenderPlugin for Cordova iOS from here https://github.com/phonegap/phonegap-plugins/tree/master/iOS/CalendarPlugin
I followed the instructions and drop the m and h files into the plugins folder, then added the key value paris in the cordova.plist file
But when I run the app I get a linker error. Does anyone know what I did wrong?
I discovered why this was occurring. I needed to also install the EventKit and EventKitUI frameworks.
Click on the xcode icon, then you should see the project icon and
the target icon. click on the target icon, then click build phases.
Click the dropdown for "Link Binary with libraries. Click the plus
sign at the bottom of the window, then search for both frameworks. Add
both of those frameworks, rebuild the project and run it.
https://groups.google.com/forum/?fromgroups=#!topic/phonegap/ylTBtmq30xg

Resources